Thread-Safety
This class is immutable and can be shared between threads without safe publication.| Modifier and Type | Field and Description |
|---|---|
| private final MethodInfo | |
| private final short |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public AnnotationInstance | Returns: the annotation instance, ornull if not foundname of the annotation type to look for, must not be name)nullImplements org. |
| public List | Returns: immutable list of annotation instances, nevernullname of the annotation type, must not be name)nullImplements org. |
| public List | Returns: immutable list of annotation instances, nevernullImplements org. |
| public List | Returns: immutable list of annotation instances, nevernullname of the annotation type, must not be name, IndexView nullindex used to obtain the annotation type, must not be index)nullImplements org. |
| public final ClassInfo | asClass()
Implements org. ClassInfo if it is of kind CLASS
|
| public final FieldInfo | asField()
Implements org. FieldInfo if it is of kind FIELD
|
| public final MethodInfo | asMethod()
Implements org. MethodInfo if it is of kind METHOD
|
| public final MethodParameterInfo | asMethodParameter()
Implements org. MethodParameterInfo if it is of kind METHOD_PARAMETER
|
| public final RecordComponentInfo | asRecordComponent()
Implements org. RecordComponentInfo if it is of kind RECORD_COMPONENT
|
| public final TypeTarget | asType()
Implements org. TypeTarget if it is of kind TYPE
|
| public static MethodParameterInfo | Returns: the new mock parameter infothe method containing this parameter. method, short the zero based index of this parameter parameter)Constructs a new mock method parameter info |
| public AnnotationInstance | Returns: the annotation instance, ornull if not foundname of the annotation type to look for, must not be name)nullImplements org. |
| public List | Returns: immutable list of annotation instances, nevernullImplements org. |
| public List | Returns: immutable list of annotation instances, nevernullname of the annotation type, must not be name, IndexView nullindex used to obtain the annotation type, must not be index)nullImplements org. |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public boolean | Returns: true if the annotation is present, false otherwisename of the annotation type to look for, must not be name)nullImplements org. |
| public boolean | Returns: true if the annotation is present, false otherwisename of the annotation type to look for, must not be name)nullImplements org. |
| public int | |
| public AnnotationTarget. | kind()
Implements org. |
| public final MethodInfo | |
| public final String | Returns: the name of this parameter, ornull if not knownReturns the name of this parameter, or |
| public final short | |
| private boolean | |
| private boolean | |
| public String | Returns: a string representation of this method parameterOverrides java. |
| public final Type |
| method | back to summary |
|---|---|
| private final MethodInfo method | |
| position | back to summary |
|---|---|
| private final short position | |
| MethodParameterInfo | back to summary |
|---|---|
| pack-priv MethodParameterInfo(MethodInfo method, short position) | |
| annotation | back to summary |
|---|---|
| public AnnotationInstance annotation(DotName name) Implements org. Returns the annotation instance with given name declared on this method parameter or any type within
its signature. The
In case an annotation with given name occurs more than once, the result of this method is not deterministic.
For such situations,
| |
| annotations | back to summary |
|---|---|
| public List Implements org. Returns the annotation instances with given name declared on this method parameter or any type within
its signature. The
| |
| annotations | back to summary |
|---|---|
| public List Implements org. Returns the annotation instances declared on this method parameter or any type within its signature.
The
| |
| annotationsWithRepeatable | back to summary |
|---|---|
| public List Implements org. Returns the annotation instances with given name declared on this method parameter or any type within
its signature. The
If the specified annotation is repeatable, the result also contains all values from the container annotation
instance. In this case, the
| |
| asClass | back to summary |
|---|---|
| public final ClassInfo asClass() Implements org. Doc from org. Casts and returns this target as a | |
| asField | back to summary |
|---|---|
| public final FieldInfo asField() Implements org. Doc from org. Casts and returns this target as a | |
| asMethod | back to summary |
|---|---|
| public final MethodInfo asMethod() Implements org. Doc from org. Casts and returns this target as a
| |
| asMethodParameter | back to summary |
|---|---|
| public final MethodParameterInfo asMethodParameter() Implements org. Doc from org. Casts and returns this target as a
| |
| asRecordComponent | back to summary |
|---|---|
| public final RecordComponentInfo asRecordComponent() Implements org. Doc from org. Casts and returns this target as a
| |
| asType | back to summary |
|---|---|
| public final TypeTarget asType() Implements org. Doc from org. Casts and returns this target as a
| |
| create | back to summary |
|---|---|
| public static MethodParameterInfo create(MethodInfo method, short parameter) Constructs a new mock method parameter info
| |
| declaredAnnotation | back to summary |
|---|---|
| public AnnotationInstance declaredAnnotation(DotName name) Implements org. Returns the annotation instance with given name declared on this method parameter.
Unlike
| |
| declaredAnnotations | back to summary |
|---|---|
| public List Implements org. Returns the annotation instances declared on this method parameter.
Unlike
| |
| declaredAnnotationsWithRepeatable | back to summary |
|---|---|
| public List Implements org. Returns the annotation instances with given name declared on this method parameter.
If the specified annotation is repeatable, the result also contains all values from the container annotation
instance. In this case, the
Unlike
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. 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. | |
| hasAnnotation | back to summary |
|---|---|
| public boolean hasAnnotation(DotName name) Implements org. Returns whether an annotation instance with given name is declared on this method parameter or any type within its signature.
| |
| hasDeclaredAnnotation | back to summary |
|---|---|
| public boolean hasDeclaredAnnotation(DotName name) Implements org. Returns whether an annotation instance with given name is declared on this method parameter.
Unlike
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| kind | back to summary |
|---|---|
| public AnnotationTarget. Implements org. Doc from org. Returns the kind of object this target represents.
| |
| method | back to summary |
|---|---|
| public final MethodInfo method() Returns the method this parameter belongs to.
| |
| name | back to summary |
|---|---|
| public final String name() Returns the name of this parameter, or
| |
| position | back to summary |
|---|---|
| public final short position() Returns the 0 based position of this parameter.
| |
| targetsThis | back to summary |
|---|---|
| private boolean targetsThis(AnnotationInstance annotation) | |
| targetsThisOrNested | back to summary |
|---|---|
| private boolean targetsThisOrNested(AnnotationInstance annotation) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation describing this method parameter. It is similar although not necessarily identical to a Java source code declaration of this method parameter.
| |
| type | back to summary |
|---|---|
| public final Type type() Returns the type of this parameter.
| |