public abstract class RecordComponentVisitor extends Object
visitAnnotation | visitTypeAnnotation | visitAttribute )* visitEnd.| Modifier and Type | Field and Description |
|---|---|
protected int |
api
The ASM API version implemented by this visitor.
|
protected RecordComponentVisitor |
delegate
The record visitor to which this visitor must delegate method calls.
|
| Modifier | Constructor and Description |
|---|---|
protected |
RecordComponentVisitor(int api)
Constructs a new
RecordComponentVisitor. |
protected |
RecordComponentVisitor(int api,
RecordComponentVisitor recordComponentVisitor)
Constructs a new
RecordComponentVisitor. |
| Modifier and Type | Method and Description |
|---|---|
RecordComponentVisitor |
getDelegate()
The record visitor to which this visitor must delegate method calls.
|
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.
|
protected final int api
Opcodes.ASM8 or Opcodes.ASM9.protected RecordComponentVisitor delegate
protected RecordComponentVisitor(int api)
RecordComponentVisitor.api - the ASM API version implemented by this visitor. Must be one of Opcodes.ASM8
or Opcodes.ASM9.protected RecordComponentVisitor(int api,
RecordComponentVisitor recordComponentVisitor)
RecordComponentVisitor.api - the ASM API version implemented by this visitor. Must be Opcodes.ASM8.recordComponentVisitor - the record component visitor to which this visitor must delegate
method calls. May be null.public RecordComponentVisitor getDelegate()
public AnnotationVisitor visitAnnotation(String descriptor, boolean visible)
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)
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)
attribute - an attribute.public void visitEnd()