public class RecordComponentNode extends RecordComponentVisitor
| Modifier and Type | Field and Description |
|---|---|
java.util.List<Attribute> |
attrs
The non standard attributes of this record component.
|
java.lang.String |
descriptor
The record component descriptor (see
Type). |
java.util.List<AnnotationNode> |
invisibleAnnotations
The runtime invisible annotations of this record component.
|
java.util.List<TypeAnnotationNode> |
invisibleTypeAnnotations
The runtime invisible type annotations of this record component.
|
java.lang.String |
name
The record component name.
|
java.lang.String |
signature
The record component signature.
|
java.util.List<AnnotationNode> |
visibleAnnotations
The runtime visible annotations of this record component.
|
java.util.List<TypeAnnotationNode> |
visibleTypeAnnotations
The runtime visible type annotations of this record component.
|
api| Constructor and Description |
|---|
RecordComponentNode(int api,
java.lang.String name,
java.lang.String descriptor,
java.lang.String signature)
Constructs a new
RecordComponentNode. |
RecordComponentNode(java.lang.String name,
java.lang.String descriptor,
java.lang.String signature)
Constructs a new
RecordComponentNode. |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ClassVisitor classVisitor)
Makes the given class visitor visit this record component.
|
void |
check(int api)
Checks that this record component node is compatible with the given ASM API version.
|
AnnotationVisitor |
visitAnnotation(java.lang.String descriptor,
boolean visible)
Visits an annotation of the record component.
|
void |
visitAttribute(Attribute attribute)
Visits a non standard attribute of the record component.
|
void |
visitEnd()
Visits the end of the record component.
|
AnnotationVisitor |
visitTypeAnnotation(int typeRef,
TypePath typePath,
java.lang.String descriptor,
boolean visible)
Visits an annotation on a type in the record component signature.
|
getDelegatepublic java.lang.String name
public java.lang.String descriptor
Type).public java.lang.String signature
public java.util.List<AnnotationNode> visibleAnnotations
public java.util.List<AnnotationNode> invisibleAnnotations
public java.util.List<TypeAnnotationNode> visibleTypeAnnotations
public java.util.List<TypeAnnotationNode> invisibleTypeAnnotations
public java.util.List<Attribute> attrs
public RecordComponentNode(java.lang.String name,
java.lang.String descriptor,
java.lang.String signature)
RecordComponentNode. Subclasses must not use this constructor.
Instead, they must use the RecordComponentNode(int, String, String, String) version.name - the record component name.descriptor - the record component descriptor (see Type).signature - the record component signature.java.lang.IllegalStateException - If a subclass calls this constructor.public RecordComponentNode(int api,
java.lang.String name,
java.lang.String descriptor,
java.lang.String signature)
RecordComponentNode.api - the ASM API version implemented by this visitor. Must be one of Opcodes.ASM8
or Opcodes.ASM9.name - the record component name.descriptor - the record component descriptor (see Type).signature - the record component signature.public AnnotationVisitor visitAnnotation(java.lang.String descriptor, boolean visible)
RecordComponentVisitorvisitAnnotation in class RecordComponentVisitordescriptor - the class descriptor of the annotation class.visible - true if the annotation is visible at runtime.public AnnotationVisitor visitTypeAnnotation(int typeRef, TypePath typePath, java.lang.String descriptor, boolean visible)
RecordComponentVisitorvisitTypeAnnotation in class RecordComponentVisitortypeRef - a reference to the annotated type. The sort of this type reference must be
TypeReference.CLASS_TYPE_PARAMETER, TypeReference.CLASS_TYPE_PARAMETER_BOUND or TypeReference.CLASS_EXTENDS. See
TypeReference.typePath - the path to the annotated type argument, wildcard bound, array element type, or
static inner type within 'typeRef'. May be null if the annotation targets
'typeRef' as a whole.descriptor - the class descriptor of the annotation class.visible - true if the annotation is visible at runtime.public void visitAttribute(Attribute attribute)
RecordComponentVisitorvisitAttribute in class RecordComponentVisitorattribute - an attribute.public void visitEnd()
RecordComponentVisitorvisitEnd in class RecordComponentVisitorpublic void check(int api)
api - an ASM API version. Must be one of Opcodes.ASM8 or Opcodes.ASM9.public void accept(ClassVisitor classVisitor)
classVisitor - a class visitor.