Top Description Fields Constructors Methods
org.glassfish.hk2.utilities

public Class MethodParameterImpl

extends Object
implements MethodParameter
Class Inheritance
All Implemented Interfaces
org.glassfish.hk2.api.MethodParameter
Imports
org.glassfish.hk2.api.MethodParameter

An implementation of MethodParameter that has immutable position and value
Author
jwells

Field Summary

Modifier and TypeField and Description
private final int
private final Object

Constructor Summary

AccessConstructor and Description
public
MethodParameterImpl(int index, Object value)

Method Summary

Modifier and TypeMethod and Description
public int
getParameterPosition()

Implements org.glassfish.hk2.api.MethodParameter.getParameterPosition.

Returns the index of the parameter for which the getParameterValue() result should go

public Object
getParameterValue()

Implements org.glassfish.hk2.api.MethodParameter.getParameterValue.

The value that should be given to the method at the parameter position specified by getParameterPosition()

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

indexback to summary
private final int index
valueback to summary
private final Object value

Constructor Detail

MethodParameterImplback to summary
public MethodParameterImpl(int index, Object value)

Method Detail

getParameterPositionback to summary
public int getParameterPosition()

Implements org.glassfish.hk2.api.MethodParameter.getParameterPosition.

Doc from org.glassfish.hk2.api.MethodParameter.getParameterPosition.

Returns the index of the parameter for which the getParameterValue() result should go

Annotations
@Override
getParameterValueback to summary
public Object getParameterValue()

Implements org.glassfish.hk2.api.MethodParameter.getParameterValue.

Doc from org.glassfish.hk2.api.MethodParameter.getParameterValue.

The value that should be given to the method at the parameter position specified by getParameterPosition()

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override