| java.lang.Object org.springframework.core.MethodParameter
Constructor Summary | |
public | MethodParameter(Method method, int parameterIndex) Create a new MethodParameter for the given method, with nesting level 1. | public | MethodParameter(Method method, int parameterIndex, int nestingLevel) Create a new MethodParameter for the given method.
Parameters: method - the Method to specify a parameter for Parameters: parameterIndex - the index of the parameter(-1 for the method return type; 0 for the first method parameter,1 for the second method parameter, etc) Parameters: nestingLevel - the nesting level of the target type(typically 1; e.g. | public | MethodParameter(Constructor constructor, int parameterIndex) Create a new MethodParameter for the given constructor, with nesting level 1. | public | MethodParameter(Constructor constructor, int parameterIndex, int nestingLevel) Create a new MethodParameter for the given constructor.
Parameters: constructor - the Constructor to specify a parameter for Parameters: parameterIndex - the index of the parameter Parameters: nestingLevel - the nesting level of the target type(typically 1; e.g. |
MethodParameter | public MethodParameter(Method method, int parameterIndex)(Code) | | Create a new MethodParameter for the given method, with nesting level 1.
Parameters: method - the Method to specify a parameter for Parameters: parameterIndex - the index of the parameter |
MethodParameter | public MethodParameter(Method method, int parameterIndex, int nestingLevel)(Code) | | Create a new MethodParameter for the given method.
Parameters: method - the Method to specify a parameter for Parameters: parameterIndex - the index of the parameter(-1 for the method return type; 0 for the first method parameter,1 for the second method parameter, etc) Parameters: nestingLevel - the nesting level of the target type(typically 1; e.g. in case of a List of Lists, 1 would indicate thenested List, whereas 2 would indicate the element of the nested List) |
MethodParameter | public MethodParameter(Constructor constructor, int parameterIndex)(Code) | | Create a new MethodParameter for the given constructor, with nesting level 1.
Parameters: constructor - the Constructor to specify a parameter for Parameters: parameterIndex - the index of the parameter |
MethodParameter | public MethodParameter(Constructor constructor, int parameterIndex, int nestingLevel)(Code) | | Create a new MethodParameter for the given constructor.
Parameters: constructor - the Constructor to specify a parameter for Parameters: parameterIndex - the index of the parameter Parameters: nestingLevel - the nesting level of the target type(typically 1; e.g. in case of a List of Lists, 1 would indicate thenested List, whereas 2 would indicate the element of the nested List) |
forMethodOrConstructor | public static MethodParameter forMethodOrConstructor(Object methodOrConstructor, int parameterIndex)(Code) | | Create a new MethodParameter for the given method or constructor.
This is a convenience constructor for scenarios where a
Method or Constructor reference is treated in a generic fashion.
Parameters: methodOrConstructor - the Method or Constructor to specify a parameter for Parameters: parameterIndex - the index of the parameter the corresponding MethodParameter instance |
getConstructor | public Constructor getConstructor()(Code) | | Return the Constructor held, if any.
Note: Either Method or Constructor is available.
the Constructor, or null if none |
getMethod | public Method getMethod()(Code) | | Return the Method held, if any.
Note: Either Method or Constructor is available.
the Method, or null if none |
getNestingLevel | public int getNestingLevel()(Code) | | Return the nesting level of the target type
(typically 1; e.g. in case of a List of Lists, 1 would indicate the
nested List, whereas 2 would indicate the element of the nested List).
|
getParameterIndex | public int getParameterIndex()(Code) | | Return the index of the method/constructor parameter.
the parameter index (never negative) |
getTypeIndexForCurrentLevel | public Integer getTypeIndexForCurrentLevel()(Code) | | Return the type index for the current nesting level.
the corresponding type index, or null if none specified (indicating the default type index) See Also: MethodParameter.getNestingLevel() |
getTypeIndexForLevel | public Integer getTypeIndexForLevel(int nestingLevel)(Code) | | Return the type index for the specified nesting level.
Parameters: nestingLevel - the nesting level to check the corresponding type index, or null if none specified (indicating the default type index) |
setTypeIndexForCurrentLevel | public void setTypeIndexForCurrentLevel(int typeIndex)(Code) | | Set the type index for the current nesting level.
Parameters: typeIndex - the corresponding type index(or null for the default type index) See Also: MethodParameter.getNestingLevel() |
|
|