Class ParamInfo
See Also:
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedParamInfo(ExecutableInfo eInfo, Parameter p, int index) Constructor.
- 
Method SummaryModifier and TypeMethodDescriptionPerforms an action on this object if the specified predicate test passes.booleanReturnstrue if this parameter can accept the specified value.<A extends Annotation>
 ParamInfoforEachAnnotation(Class<A> type, Predicate<A> filter, Consumer<A> action) Performs an action on all matching annotations on this parameter.<A extends Annotation>
 ParamInfoforEachDeclaredAnnotation(Class<A> type, Predicate<A> filter, Consumer<A> action) Performs an action on all matching annotations declared on this parameter.<A extends Annotation>
 AgetAnnotation(Class<A> type) Finds the annotation of the specified type defined on this method parameter.<A extends Annotation>
 AgetAnnotation(Class<A> type, Predicate<A> filter) Returns the first matching annotation on this method parameter.Returns the constructor that this parameter belongs to.<A extends Annotation>
 AgetDeclaredAnnotation(Class<A> type) Returns the specified parameter annotation declared on this parameter.intgetIndex()Returns the index position of this parameter.Returns the method that this parameter belongs to.getName()Returns the name of the parameter.Returns the class type of this parameter.<A extends Annotation>
 booleanhasAnnotation(Class<A> type) Returnstrue if this parameter has the specified annotation.booleanhasName()Returnstrue if the parameter has a name provided by the class file.<A extends Annotation>
 booleanhasNoAnnotation(Class<A> type) Returnstrue if this parameter doesn't have the specified annotation.booleanReturnstrue if the parameter type is an exact match for the specified class.booleanReturnstrue if this object passes the specified predicate test.toString()
- 
Constructor Details- 
ParamInfoConstructor.- Parameters:
- eInfo- The constructor or method wrapper.
- p- The parameter being wrapped.
- index- The parameter index.
 
 
- 
- 
Method Details- 
getIndexReturns the index position of this parameter.- Returns:
- The index position of this parameter.
 
- 
getMethodReturns the method that this parameter belongs to.- Returns:
- The method that this parameter belongs to, or null if it belongs to a constructor.
 
- 
getConstructorReturns the constructor that this parameter belongs to.- Returns:
- The constructor that this parameter belongs to, or null if it belongs to a method.
 
- 
getParameterTypeReturns the class type of this parameter.- Returns:
- The class type of this parameter.
 
- 
forEachDeclaredAnnotationpublic <A extends Annotation> ParamInfo forEachDeclaredAnnotation(Class<A> type, Predicate<A> filter, Consumer<A> action) Performs an action on all matching annotations declared on this parameter.- Type Parameters:
- A- The annotation type to look for.
- Parameters:
- type- The annotation type to look for.
- filter- A predicate to apply to the entries to determine if action should be performed. Can be- null .
- action- An action to perform on the entry.
- Returns:
- This object.
 
- 
getDeclaredAnnotationReturns the specified parameter annotation declared on this parameter.- Type Parameters:
- A- The annotation type to look for.
- Parameters:
- type- The annotation type to look for.
- Returns:
- The specified parameter annotation declared on this parameter, or null if not found.
 
- 
getAnnotationFinds the annotation of the specified type defined on this method parameter.If the annotation cannot be found on the immediate method, searches methods with the same signature on the parent classes or interfaces. 
 The search is performed in child-to-parent order.If still not found, searches for the annotation on the return type of the method. - Type Parameters:
- A- The annotation type to look for.
- Parameters:
- type- The annotation type to look for.
- Returns:
- The annotation if found, or null if not.
 
- 
hasAnnotationReturnstrue if this parameter has the specified annotation.- Type Parameters:
- A- The annotation type to look for.
- Parameters:
- type- The annotation type to look for.
- Returns:
- The true if annotation if found.
 
- 
hasNoAnnotationReturnstrue if this parameter doesn't have the specified annotation.- Type Parameters:
- A- The annotation type to look for.
- Parameters:
- type- The annotation type to look for.
- Returns:
- The true if annotation if not found.
 
- 
forEachAnnotationpublic <A extends Annotation> ParamInfo forEachAnnotation(Class<A> type, Predicate<A> filter, Consumer<A> action) Performs an action on all matching annotations on this parameter.Searches all methods with the same signature on the parent classes or interfaces and the return type on the method. Results are in parent-to-child order. - Type Parameters:
- A- The annotation type to look for.
- Parameters:
- type- The annotation type to look for.
- filter- A predicate to apply to the entries to determine if action should be performed. Can be- null .
- action- An action to perform on the entry.
- Returns:
- This object.
 
- 
getAnnotationReturns the first matching annotation on this method parameter.Searches all methods with the same signature on the parent classes or interfaces and the return type on the method. Results are in parent-to-child order. - Type Parameters:
- A- The annotation type to look for.
- Parameters:
- type- The annotation type to look for.
- filter- A predicate to apply to the entries to determine if value should be used. Can be- null .
- Returns:
- A list of all matching annotations found or an empty list if none found.
 
- 
matchesReturnstrue if this object passes the specified predicate test.- Parameters:
- test- The test to perform.
- Returns:
- true if this object passes the specified predicate test.
 
- 
acceptPerforms an action on this object if the specified predicate test passes.- Parameters:
- test- A test to apply to determine if action should be executed. Can be- null .
- action- An action to perform on this object.
- Returns:
- This object.
 
- 
isTypeReturnstrue if the parameter type is an exact match for the specified class.- Parameters:
- c- The type to check.
- Returns:
- true if the parameter type is an exact match for the specified class.
 
- 
hasNameReturnstrue if the parameter has a name provided by the class file.- Returns:
- true if the parameter has a name provided by the class file.
 
- 
getNameReturns the name of the parameter.If the parameter's name is present, then this method returns the name provided by the class file. Otherwise, this method synthesizes a name of the form argN, where N is the index of the parameter in the descriptor of the method which declares the parameter. - Returns:
- The name of the parameter.
- See Also:
 
- 
canAcceptReturnstrue if this parameter can accept the specified value.- Parameters:
- value- The value to check.
- Returns:
- true if this parameter can accept the specified value.
 
- 
toString
 
-