Top Description Fields Constructors Methods
jdk.internal.org.objectweb.asm

public abstract Class RecordComponentVisitor

extends Object
Class Inheritance
Known Direct Subclasses
jdk.internal.org.objectweb.asm.RecordComponentWriter, jdk.internal.org.objectweb.asm.commons.RecordComponentRemapper, jdk.internal.org.objectweb.asm.tree.RecordComponentNode, jdk.internal.org.objectweb.asm.util.CheckRecordComponentAdapter, jdk.internal.org.objectweb.asm.util.TraceRecordComponentVisitor

A visitor to visit a record component. The methods of this class must be called in the following order: ( visitAnnotation | visitTypeAnnotation | visitAttribute )* visitEnd.
Authors
Remi Forax, Eric Bruneton

Field Summary

Modifier and TypeField and Description
protected final int
api

The ASM API version implemented by this visitor.

protected RecordComponentVisitor
delegate

The record visitor to which this visitor must delegate method calls.

Constructor Summary

AccessConstructor and Description
protected
RecordComponentVisitor(final int
the ASM API version implemented by this visitor. Must be one of Opcodes#ASM8 or Opcodes#ASM9.
api
)

Constructs a new RecordComponentVisitor.

protected
RecordComponentVisitor(final int
the ASM API version implemented by this visitor. Must be Opcodes#ASM8.
api
,
final RecordComponentVisitor
the record component visitor to which this visitor must delegate method calls. May be null.
recordComponentVisitor
)

Constructs a new RecordComponentVisitor.

Method Summary

Modifier and TypeMethod and Description
public RecordComponentVisitor

Returns:

the record visitor to which this visitor must delegate method calls, or null.
getDelegate
()

The record visitor to which this visitor must delegate method calls.

public AnnotationVisitor

Returns:

a visitor to visit the annotation values, or null if this visitor is not interested in visiting this annotation.
visitAnnotation
(final String
the class descriptor of the annotation class.
descriptor
,
final boolean
true if the annotation is visible at runtime.
visible
)

Visits an annotation of the record component.

public void
visitAttribute(final Attribute
an attribute.
attribute
)

Visits a non standard attribute of the record component.

public void
visitEnd()

Visits the end of the record component.

public AnnotationVisitor

Returns:

a visitor to visit the annotation values, or null if this visitor is not interested in visiting this annotation.
visitTypeAnnotation
(final int
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.
typeRef
,
final 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.
typePath
,
final String
the class descriptor of the annotation class.
descriptor
,
final boolean
true if the annotation is visible at runtime.
visible
)

Visits an annotation on a type in the record component signature.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

apiback to summary
protected final int api

The ASM API version implemented by this visitor. The value of this field must be one of Opcodes#ASM8 or Opcodes#ASM9.

delegateback to summary
protected RecordComponentVisitor delegate

The record visitor to which this visitor must delegate method calls. May be null.

Constructor Detail

RecordComponentVisitorback to summary
protected RecordComponentVisitor(final int api)

Constructs a new RecordComponentVisitor.

Parameters
api:int

the ASM API version implemented by this visitor. Must be one of Opcodes#ASM8 or Opcodes#ASM9.

RecordComponentVisitorback to summary
protected RecordComponentVisitor(final int api, final RecordComponentVisitor recordComponentVisitor)

Constructs a new RecordComponentVisitor.

Parameters
api:int

the ASM API version implemented by this visitor. Must be Opcodes#ASM8.

recordComponentVisitor:RecordComponentVisitor

the record component visitor to which this visitor must delegate method calls. May be null.

Method Detail

getDelegateback to summary
public RecordComponentVisitor getDelegate()

The record visitor to which this visitor must delegate method calls. May be null.

Returns:RecordComponentVisitor

the record visitor to which this visitor must delegate method calls, or null.

visitAnnotationback to summary
public AnnotationVisitor visitAnnotation(final String descriptor, final boolean visible)

Visits an annotation of the record component.

Parameters
descriptor:String

the class descriptor of the annotation class.

visible:boolean

true if the annotation is visible at runtime.

Returns:AnnotationVisitor

a visitor to visit the annotation values, or null if this visitor is not interested in visiting this annotation.

visitAttributeback to summary
public void visitAttribute(final Attribute attribute)

Visits a non standard attribute of the record component.

Parameters
attribute:Attribute

an attribute.

visitEndback to summary
public void visitEnd()

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.

visitTypeAnnotationback to summary
public AnnotationVisitor visitTypeAnnotation(final int typeRef, final TypePath typePath, final String descriptor, final boolean visible)

Visits an annotation on a type in the record component signature.

Parameters
typeRef:int

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: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:String

the class descriptor of the annotation class.

visible:boolean

true if the annotation is visible at runtime.

Returns:AnnotationVisitor

a visitor to visit the annotation values, or null if this visitor is not interested in visiting this annotation.