java.lang.Object
org.glassfish.hk2.utilities.MethodParameterImpl
- All Implemented Interfaces:
MethodParameter
An implementation of
MethodParameter
that
has immutable position and value- Author:
- jwells
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the index of the parameter for which theMethodParameter.getParameterValue()
result should goThe value that should be given to the method at the parameter position specified byMethodParameter.getParameterPosition()
toString()
-
Constructor Details
-
MethodParameterImpl
-
-
Method Details
-
getParameterPosition
public int getParameterPosition()Description copied from interface:MethodParameter
Returns the index of the parameter for which theMethodParameter.getParameterValue()
result should go- Specified by:
getParameterPosition
in interfaceMethodParameter
- Returns:
- The index of the parameter in the method where the parameter value should go
-
getParameterValue
Description copied from interface:MethodParameter
The value that should be given to the method at the parameter position specified byMethodParameter.getParameterPosition()
- Specified by:
getParameterValue
in interfaceMethodParameter
- Returns:
- The possibly null parameter value that should be passed to the method at the given index
-
toString
-