public class RecordComponentNode extends RecordComponentVisitor
Modifier and Type | Field and Description |
---|---|
List<Attribute> |
attrs
The non standard attributes of this record component.
|
String |
descriptor
The record component descriptor (see
Type ). |
List<AnnotationNode> |
invisibleAnnotations
The runtime invisible annotations of this record component.
|
List<TypeAnnotationNode> |
invisibleTypeAnnotations
The runtime invisible type annotations of this record component.
|
String |
name
The record component name.
|
String |
signature
The record component signature.
|
List<AnnotationNode> |
visibleAnnotations
The runtime visible annotations of this record component.
|
List<TypeAnnotationNode> |
visibleTypeAnnotations
The runtime visible type annotations of this record component.
|
api
Constructor and Description |
---|
RecordComponentNode(int api,
String name,
String descriptor,
String signature)
Constructs a new
RecordComponentNode . |
RecordComponentNode(String name,
String descriptor,
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(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,
String descriptor,
boolean visible)
Visits an annotation on a type in the record component signature.
|
getDelegate
public String name
public String signature
public List<AnnotationNode> visibleAnnotations
public List<AnnotationNode> invisibleAnnotations
public List<TypeAnnotationNode> visibleTypeAnnotations
public List<TypeAnnotationNode> invisibleTypeAnnotations
public RecordComponentNode(String name, String descriptor, 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.IllegalStateException
- If a subclass calls this constructor.public RecordComponentNode(int api, String name, String descriptor, String signature)
RecordComponentNode
.api
- the ASM API version implemented by this visitor. Must be Opcodes.ASM8
.name
- the record component name.descriptor
- the record component descriptor (see Type
).signature
- the record component signature.public AnnotationVisitor visitAnnotation(String descriptor, boolean visible)
RecordComponentVisitor
visitAnnotation
in class RecordComponentVisitor
descriptor
- the class descriptor of the annotation class.visible
- true if the annotation is visible at runtime.public AnnotationVisitor visitTypeAnnotation(int typeRef, TypePath typePath, String descriptor, boolean visible)
RecordComponentVisitor
visitTypeAnnotation
in class RecordComponentVisitor
typeRef
- 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)
RecordComponentVisitor
visitAttribute
in class RecordComponentVisitor
attribute
- an attribute.public void visitEnd()
RecordComponentVisitor
visitEnd
in class RecordComponentVisitor
public void check(int api)
api
- an ASM API version. Must be Opcodes.ASM8
.public void accept(ClassVisitor classVisitor)
classVisitor
- a class visitor.Copyright © 2022. All rights reserved.