public class RecordComponentRemapper extends RecordComponentVisitor
RecordComponentVisitor that remaps types with a Remapper.| Modifier and Type | Field and Description |
|---|---|
protected Remapper |
remapper
The remapper used to remap the types in the visited field.
|
api| Modifier | Constructor and Description |
|---|---|
protected |
RecordComponentRemapper(int api,
RecordComponentVisitor recordComponentVisitor,
Remapper remapper)
Constructs a new
RecordComponentRemapper. |
|
RecordComponentRemapper(RecordComponentVisitor recordComponentVisitor,
Remapper remapper)
Constructs a new
RecordComponentRemapper. |
| Modifier and Type | Method and Description |
|---|---|
protected AnnotationVisitor |
createAnnotationRemapper(AnnotationVisitor annotationVisitor)
Constructs a new remapper for annotations.
|
AnnotationVisitor |
visitAnnotation(java.lang.String descriptor,
boolean visible)
Visits an annotation of the record component.
|
AnnotationVisitor |
visitTypeAnnotation(int typeRef,
TypePath typePath,
java.lang.String descriptor,
boolean visible)
Visits an annotation on a type in the record component signature.
|
getDelegate, visitAttribute, visitEndprotected final Remapper remapper
public RecordComponentRemapper(RecordComponentVisitor recordComponentVisitor, Remapper remapper)
RecordComponentRemapper. Subclasses must not use this
constructor. Instead, they must use the RecordComponentRemapper(int,RecordComponentVisitor,Remapper) version.recordComponentVisitor - the record component visitor this remapper must delegate to.remapper - the remapper to use to remap the types in the visited record component.protected RecordComponentRemapper(int api,
RecordComponentVisitor recordComponentVisitor,
Remapper remapper)
RecordComponentRemapper.api - the ASM API version supported by this remapper. Must be one of Opcodes.ASM8 or Opcodes.ASM9.recordComponentVisitor - the record component visitor this remapper must delegate to.remapper - the remapper to use to remap the types in the visited record component.public AnnotationVisitor visitAnnotation(java.lang.String descriptor, boolean visible)
RecordComponentVisitorvisitAnnotation in class RecordComponentVisitordescriptor - the class descriptor of the annotation class.visible - true if the annotation is visible at runtime.public AnnotationVisitor visitTypeAnnotation(int typeRef, TypePath typePath, java.lang.String descriptor, boolean visible)
RecordComponentVisitorvisitTypeAnnotation in class RecordComponentVisitortypeRef - 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.protected AnnotationVisitor createAnnotationRemapper(AnnotationVisitor annotationVisitor)
AnnotationRemapper.annotationVisitor - the AnnotationVisitor the remapper must delegate to.