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 TypeMethodDescriptionintReturns 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:MethodParameterReturns the index of the parameter for which theMethodParameter.getParameterValue()result should go- Specified by:
getParameterPositionin interfaceMethodParameter- Returns:
- The index of the parameter in the method where the parameter value should go
-
getParameterValue
Description copied from interface:MethodParameterThe value that should be given to the method at the parameter position specified byMethodParameter.getParameterPosition()- Specified by:
getParameterValuein interfaceMethodParameter- Returns:
- The possibly null parameter value that should be passed to the method at the given index
-
toString
-