Package org.objectweb.asm.tree
Class RecordComponentNode
- java.lang.Object
-
- org.objectweb.asm.RecordComponentVisitor
-
- org.objectweb.asm.tree.RecordComponentNode
-
@Deprecated public class RecordComponentNode extends RecordComponentVisitor
Deprecated.this API is experimental.A node that represents a record component.
-
-
Field Summary
Fields Modifier and Type Field Description int
accessExperimental
Deprecated.this API is experimental.List<Attribute>
attrsExperimental
Deprecated.this API is experimental.String
descriptorExperimental
Deprecated.this API is experimental.List<AnnotationNode>
invisibleAnnotationsExperimental
Deprecated.this API is experimental.List<TypeAnnotationNode>
invisibleTypeAnnotationsExperimental
Deprecated.this API is experimental.String
nameExperimental
Deprecated.this API is experimental.String
signatureExperimental
Deprecated.this API is experimental.List<AnnotationNode>
visibleAnnotationsExperimental
Deprecated.this API is experimental.List<TypeAnnotationNode>
visibleTypeAnnotationsExperimental
Deprecated.this API is experimental.-
Fields inherited from class org.objectweb.asm.RecordComponentVisitor
api
-
-
Constructor Summary
Constructors Constructor Description RecordComponentNode(int api, int access, String name, String descriptor, String signature)
Deprecated.this API is experimental.RecordComponentNode(int access, String name, String descriptor, String signature)
Deprecated.this API is experimental.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
acceptExperimental(ClassVisitor classVisitor)
Deprecated.this API is experimental.void
checkExperimental(int api)
Deprecated.this API is experimental.AnnotationVisitor
visitAnnotationExperimental(String descriptor, boolean visible)
Deprecated.Visits an annotation of the record component.void
visitAttributeExperimental(Attribute attribute)
Deprecated.Visits a non standard attribute of the record component.void
visitEndExperimental()
Deprecated.Visits the end of the record component.AnnotationVisitor
visitTypeAnnotationExperimental(int typeRef, TypePath typePath, String descriptor, boolean visible)
Deprecated.Visits an annotation on a type in the record component signature.-
Methods inherited from class org.objectweb.asm.RecordComponentVisitor
getDelegateExperimental
-
-
-
-
Field Detail
-
accessExperimental
public int accessExperimental
Deprecated.this API is experimental.The record component access flags (seeOpcodes
). The only valid value isOpcodes.ACC_DEPRECATED
.
-
nameExperimental
public String nameExperimental
Deprecated.this API is experimental.The record component name.
-
descriptorExperimental
public String descriptorExperimental
Deprecated.this API is experimental.The record component descriptor (seeType
).
-
signatureExperimental
public String signatureExperimental
Deprecated.this API is experimental.The record component signature. May be null.
-
visibleAnnotationsExperimental
public List<AnnotationNode> visibleAnnotationsExperimental
Deprecated.this API is experimental.The runtime visible annotations of this record component. May be null.
-
invisibleAnnotationsExperimental
public List<AnnotationNode> invisibleAnnotationsExperimental
Deprecated.this API is experimental.The runtime invisible annotations of this record component. May be null.
-
visibleTypeAnnotationsExperimental
public List<TypeAnnotationNode> visibleTypeAnnotationsExperimental
Deprecated.this API is experimental.The runtime visible type annotations of this record component. May be null.
-
invisibleTypeAnnotationsExperimental
public List<TypeAnnotationNode> invisibleTypeAnnotationsExperimental
Deprecated.this API is experimental.The runtime invisible type annotations of this record component. May be null.
-
-
Constructor Detail
-
RecordComponentNode
@Deprecated public RecordComponentNode(int access, String name, String descriptor, String signature)
Deprecated.this API is experimental.Constructs a newRecordComponentNode
. Subclasses must not use this constructor. Instead, they must use theRecordComponentNode(int, int, String, String, String)
version.- Parameters:
access
- the record component access flags (seeOpcodes
). The only valid value isOpcodes.ACC_DEPRECATED
.name
- the record component name.descriptor
- the record component descriptor (seeType
).signature
- the record component signature.- Throws:
IllegalStateException
- If a subclass calls this constructor.
-
RecordComponentNode
@Deprecated public RecordComponentNode(int api, int access, String name, String descriptor, String signature)
Deprecated.this API is experimental.Constructs a newRecordComponentNode
.- Parameters:
api
- the ASM API version implemented by this visitor. Must beOpcodes.ASM8_EXPERIMENTAL
.access
- the record component access flags (seeOpcodes
). The only valid value isOpcodes.ACC_DEPRECATED
.name
- the record component name.descriptor
- the record component descriptor (seeType
).signature
- the record component signature.
-
-
Method Detail
-
visitAnnotationExperimental
public AnnotationVisitor visitAnnotationExperimental(String descriptor, boolean visible)
Deprecated.Description copied from class:RecordComponentVisitor
Visits an annotation of the record component.- Overrides:
visitAnnotationExperimental
in classRecordComponentVisitor
- Parameters:
descriptor
- the class descriptor of the annotation class.visible
- true if the annotation is visible at runtime.- Returns:
- a visitor to visit the annotation values, or null if this visitor is not interested in visiting this annotation.
-
visitTypeAnnotationExperimental
public AnnotationVisitor visitTypeAnnotationExperimental(int typeRef, TypePath typePath, String descriptor, boolean visible)
Deprecated.Description copied from class:RecordComponentVisitor
Visits an annotation on a type in the record component signature.- Overrides:
visitTypeAnnotationExperimental
in classRecordComponentVisitor
- Parameters:
typeRef
- a reference to the annotated type. The sort of this type reference must beTypeReference.CLASS_TYPE_PARAMETER
,TypeReference.CLASS_TYPE_PARAMETER_BOUND
orTypeReference.CLASS_EXTENDS
. SeeTypeReference
.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.- Returns:
- a visitor to visit the annotation values, or null if this visitor is not interested in visiting this annotation.
-
visitAttributeExperimental
public void visitAttributeExperimental(Attribute attribute)
Deprecated.Description copied from class:RecordComponentVisitor
Visits a non standard attribute of the record component.- Overrides:
visitAttributeExperimental
in classRecordComponentVisitor
- Parameters:
attribute
- an attribute.
-
visitEndExperimental
public void visitEndExperimental()
Deprecated.Description copied from class:RecordComponentVisitor
Visits the end of the record component. This method, which is the last one to be called, is used to inform the visitor that everything have been visited.- Overrides:
visitEndExperimental
in classRecordComponentVisitor
-
checkExperimental
public void checkExperimental(int api)
Deprecated.this API is experimental.Checks that this record component node is compatible with the given ASM API version. This method checks that this node, and all its children recursively, do not contain elements that were introduced in more recent versions of the ASM API than the given version.- Parameters:
api
- an ASM API version. Must beOpcodes.ASM8_EXPERIMENTAL
.
-
acceptExperimental
public void acceptExperimental(ClassVisitor classVisitor)
Deprecated.this API is experimental.Makes the given class visitor visit this record component.- Parameters:
classVisitor
- a class visitor.
-
-