| Modifier and Type | Field and Description |
|---|---|
| protected final int | _index
Index of the parameter within argument list |
| protected final AnnotatedWithParams | _owner
Member (method, constructor) that this parameter belongs to |
| protected final JavaType | _type
JDK type of the parameter, possibly contains generic type information |
| Access | Constructor and Description |
|---|---|
| public | AnnotatedParameter(AnnotatedWithParams owner, JavaType type, TypeResolutionContext typeContext, AnnotationMap annotations, int index)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object o)
Implements abstract tools. Indicates whether some other object is "equal to" this one. |
| public AnnotatedElement | getAnnotated()
Implements abstract tools. Since there is no matching JDK element, this method will always return null |
| public Class | getDeclaringClass()
Implements abstract tools. Actual physical class in which this member was declared. |
| public int | Returns: Index of this parameter within argument listAccessor for index of this parameter within argument list |
| public Member | |
| public int | getModifiers()
Implements abstract tools. Returns modifiers of the constructor, as parameters do not have independent modifiers. |
| public String | getName()
Implements abstract tools. Parameters have no names in bytecode (unlike in source code), will always return empty String (""). |
| public AnnotatedWithParams | Returns: Owner (member or creator) object of this parameterAccessor for 'owner' of this parameter; method or constructor that has this parameter as member of its argument list. |
| public Class | getRawType()
Implements abstract tools. "Raw" type (type-erased class) of the annotated element; definition of what exactly this means depends on sub-class. |
| public JavaType | getType()
Implements abstract tools. Full generic type of the annotated element; definition of what exactly this means depends on sub-class. |
| public Object | getValue(Object pojo)
Implements abstract tools. Optional method that can be used to access the value of this member on given object, if this is a supported operation for member type. |
| public int | hashCode()
Implements abstract tools. Returns a hash code value for this object. |
| public void | setValue(Object pojo, Object value)
Implements abstract tools. Optional method that can be used to assign value of this member on given object, if this is a supported operation for member type. |
| public String | toString()
Implements abstract tools. Returns a string representation of the object. |
| public AnnotatedParameter | withAnnotations(AnnotationMap ann)
Implements abstract tools. Fluent factory method that will construct a new instance that uses specified instance annotations instead of currently configured ones. |
| _index | back to summary |
|---|---|
| protected final int _index Index of the parameter within argument list | |
| _owner | back to summary |
|---|---|
| protected final AnnotatedWithParams _owner Member (method, constructor) that this parameter belongs to | |
| _type | back to summary |
|---|---|
| protected final JavaType _type JDK type of the parameter, possibly contains generic type information | |
| AnnotatedParameter | back to summary |
|---|---|
| public AnnotatedParameter(AnnotatedWithParams owner, JavaType type, TypeResolutionContext typeContext, AnnotationMap annotations, int index) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Implements abstract tools. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getAnnotated | back to summary |
|---|---|
| public AnnotatedElement getAnnotated() Implements abstract tools. Since there is no matching JDK element, this method will always return null
| |
| getDeclaringClass | back to summary |
|---|---|
| public Class Implements abstract tools. Doc from tools. Actual physical class in which this member was declared.
| |
| getIndex | back to summary |
|---|---|
| public int getIndex() Accessor for index of this parameter within argument list
| |
| getMember | back to summary |
|---|---|
| public Member getMember() Implements abstract tools.
| |
| getModifiers | back to summary |
|---|---|
| public int getModifiers() Implements abstract tools. Returns modifiers of the constructor, as parameters do not have independent modifiers.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements abstract tools. Parameters have no names in bytecode (unlike in source code), will always return empty String ("").
| |
| getOwner | back to summary |
|---|---|
| public AnnotatedWithParams getOwner() Accessor for 'owner' of this parameter; method or constructor that has this parameter as member of its argument list.
| |
| getRawType | back to summary |
|---|---|
| public Class Implements abstract tools. Doc from tools. "Raw" type (type-erased class) of the annotated element; definition of what exactly this means depends on sub-class.
| |
| getType | back to summary |
|---|---|
| public JavaType getType() Implements abstract tools. Doc from tools. Full generic type of the annotated element; definition of what exactly this means depends on sub-class.
| |
| getValue | back to summary |
|---|---|
| public Object getValue(Object pojo) throws UnsupportedOperationException Implements abstract tools. Doc from tools. Optional method that can be used to access the value of this member on given object, if this is a supported operation for member type. This is implemented for fields and no-argument member methods; but not for constructor parameters or other types of methods (like static methods)
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract tools. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| setValue | back to summary |
|---|---|
| public void setValue(Object pojo, Object value) throws UnsupportedOperationException Implements abstract tools. Doc from tools. Optional method that can be used to assign value of this member on given object, if this is a supported operation for member type. This is implemented for fields and single-argument member methods; but not for constructor parameters or other types of methods (like static methods)
| |
| toString | back to summary |
|---|---|
| public String toString() Implements abstract tools. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| withAnnotations | back to summary |
|---|---|
| public AnnotatedParameter withAnnotations(AnnotationMap ann) Implements abstract tools. Doc from tools. Fluent factory method that will construct a new instance that uses specified instance annotations instead of currently configured ones.
| |