Thread-Safety
This class is immutable and can be shared between threads without safe publication.| Modifier and Type | Field and Description |
|---|---|
| private ClassInfo | |
| private RecordComponentInternal |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public final MethodInfo | Returns: the accessor methodReturns the accessor method corresponding to this record component. |
| public final AnnotationInstance | Returns: the annotation instance, ornull if not foundname of the annotation type to look for, must not be name)nullImplements org. |
| public final List | Returns: immutable list of annotation instances, nevernullname of the annotation type, must not be name)nullImplements org. |
| public final List | Returns: immutable list of annotation instances, nevernullImplements org. |
| public final 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 RecordComponentInfo | |
| public final AnnotationInstance | Returns: the annotation instance, ornull if not foundname of the annotation type to look for, must not be name)nullImplements org. |
| public final List | Returns: immutable list of annotation instances, nevernullImplements org. |
| public final 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 | Returns: the (record) class declaring this record componentReturns the (record) class declaring this record component. |
| public String | Returns: the bytecode descriptor of this record componenta substitution function from type variable identifiers to types typeVariableSubstitution)Implements org. |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public final FieldInfo | Returns: the component fieldReturns the component field corresponding to this record component. |
| public String | Returns: a generic signature of this record component with type variables substituted, nevernulla substitution function from type variable identifiers to types typeVariableSubstitution)Implements org. |
| public final boolean | Returns: true if the annotation is present, false otherwisename of the annotation type to look for, must not be name)nullImplements org. |
| public final 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 String | |
| pack-priv RecordComponentInternal | |
| public boolean | Returns: whether this record component must have a generic signatureImplements org. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public String | Returns: a string representation of this record componentOverrides java. |
| public Type |
| clazz | back to summary |
|---|---|
| private ClassInfo clazz | |
| internal | back to summary |
|---|---|
| private RecordComponentInternal internal | |
| RecordComponentInfo | back to summary |
|---|---|
| pack-priv RecordComponentInfo() | |
| RecordComponentInfo | back to summary |
|---|---|
| pack-priv RecordComponentInfo(ClassInfo clazz, RecordComponentInternal internal) | |
| RecordComponentInfo | back to summary |
|---|---|
| pack-priv RecordComponentInfo(ClassInfo clazz, byte[] name, Type type) | |
| accessor | back to summary |
|---|---|
| public final MethodInfo accessor() Returns the accessor method corresponding to this record component.
| |
| annotation | back to summary |
|---|---|
| public final AnnotationInstance annotation(DotName name) Implements org. Returns the annotation instance with given name declared on this record component 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 final List Implements org. Returns the annotation instances with given name declared on this record component or any type within its signature.
The
| |
| annotations | back to summary |
|---|---|
| public final List Implements org. Returns the annotation instances declared on this record component or any type within its signature.
The
| |
| annotationsWithRepeatable | back to summary |
|---|---|
| public final List Implements org. Returns the annotation instances with given name declared on this record component 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 RecordComponentInfo create(ClassInfo clazz, String name, Type type) Constructs a new mock record component info
| |
| declaredAnnotation | back to summary |
|---|---|
| public final AnnotationInstance declaredAnnotation(DotName name) Implements org. Returns the annotation instance with given name declared on this record component.
Unlike
| |
| declaredAnnotations | back to summary |
|---|---|
| public final List Implements org. Returns the annotation instances declared on this record component.
Unlike
| |
| declaredAnnotationsWithRepeatable | back to summary |
|---|---|
| public final List Implements org. Returns the annotation instances with given name declared on this record component.
If the specified annotation is repeatable, the result also contains all values from the container annotation
instance. In this case, the
Unlike
| |
| declaringClass | back to summary |
|---|---|
| public final ClassInfo declaringClass() Returns the (record) class declaring this record component.
| |
| descriptor | back to summary |
|---|---|
| public String descriptor(Function<String, Type> typeVariableSubstitution) Implements org. Returns a bytecode descriptor of this record component.
Descriptors of type variables are substituted for descriptors of types provided by the substitution
function Note that the return value does not come directly from bytecode. Jandex does not store the descriptor strings. Instead, the return value is reconstructed from the Jandex object model. | |
| 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. | |
| field | back to summary |
|---|---|
| public final FieldInfo field() Returns the component field corresponding to this record component.
| |
| genericSignature | back to summary |
|---|---|
| public String genericSignature(Function<String, Type> typeVariableSubstitution) Implements org. Returns a generic signature of this record component, possibly without any generic-related information. That is, produces a correct generic signature even if this record component does not use any type variables.
Signatures of type variables are substituted for signatures of types provided by the substitution
function Note that the return value does not come directly from bytecode. Jandex does not store the signature strings. Instead, the return value is reconstructed from the Jandex object model. | |
| hasAnnotation | back to summary |
|---|---|
| public final boolean hasAnnotation(DotName name) Implements org. Returns whether an annotation instance with given name is declared on this record component or any type within its signature.
| |
| hasDeclaredAnnotation | back to summary |
|---|---|
| public final boolean hasDeclaredAnnotation(DotName name) Implements org. Returns whether an annotation instance with given name is declared on this record component.
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.
| |
| name | back to summary |
|---|---|
| public final String name() Returns the name of this record component.
| |
| recordComponentInternal | back to summary |
|---|---|
| pack-priv RecordComponentInternal recordComponentInternal() | |
| requiresGenericSignature | back to summary |
|---|---|
| public boolean requiresGenericSignature() Implements org. Returns whether this record component must have a generic signature. That is, whether the Java compiler
when compiling this record component had to emit the
| |
| setAnnotations | back to summary |
|---|---|
| pack-priv void setAnnotations(List<AnnotationInstance> annotations) | |
| setClassInfo | back to summary |
|---|---|
| pack-priv void setClassInfo(ClassInfo clazz) | |
| setRecordComponentInternal | back to summary |
|---|---|
| pack-priv void setRecordComponentInternal(RecordComponentInternal internal) | |
| setType | back to summary |
|---|---|
| pack-priv void setType(Type type) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation describing this record component. It is similar although not necessarily identical to a Java source code declaration of this record component.
| |
| type | back to summary |
|---|---|
| public Type type() Returns the type of this record component.
| |