@HashCodeAndEqualsPlugin.Enhance public static class AnnotationAppender.Target.OnRecordComponent extends Object implements AnnotationAppender.Target
AnnotationAppender.Target.OnField, AnnotationAppender.Target.OnMethod, AnnotationAppender.Target.OnMethodParameter, AnnotationAppender.Target.OnRecordComponent, AnnotationAppender.Target.OnType
Constructor and Description |
---|
OnRecordComponent(org.objectweb.asm.RecordComponentVisitor recordComponentVisitor)
Creates a new wrapper for a Java record component.
|
Modifier and Type | Method and Description |
---|---|
org.objectweb.asm.AnnotationVisitor |
visit(String annotationTypeDescriptor,
boolean visible)
Creates an annotation visitor for writing the specified annotation.
|
org.objectweb.asm.AnnotationVisitor |
visit(String annotationTypeDescriptor,
boolean visible,
int typeReference,
String typePath)
Creates an annotation visitor for writing the specified type annotation.
|
public OnRecordComponent(org.objectweb.asm.RecordComponentVisitor recordComponentVisitor)
recordComponentVisitor
- The record component visitor to write the annotation to.@MaybeNull public org.objectweb.asm.AnnotationVisitor visit(String annotationTypeDescriptor, boolean visible)
visit
in interface AnnotationAppender.Target
annotationTypeDescriptor
- The type descriptor for the annotation to be written.visible
- true
if the annotation is to be visible at runtime.@MaybeNull public org.objectweb.asm.AnnotationVisitor visit(String annotationTypeDescriptor, boolean visible, int typeReference, String typePath)
visit
in interface AnnotationAppender.Target
annotationTypeDescriptor
- The type descriptor for the annotation to be written.visible
- true
if the annotation is to be visible at runtime.typeReference
- The type annotation's type reference.typePath
- The type annotation's type path.Copyright © 2014–2022. All rights reserved.