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 |
visitAnnotationExperimental(String descriptor,
boolean visible)
Visits an annotation of the record component.
|
AnnotationVisitor |
visitTypeAnnotationExperimental(int typeRef,
TypePath typePath,
String descriptor,
boolean visible)
Visits an annotation on a type in the record component signature.
|
getDelegateExperimental, visitAttributeExperimental, visitEndExperimental
protected 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 Opcodes.ASM8_EXPERIMENTAL
.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 visitAnnotationExperimental(String descriptor, boolean visible)
RecordComponentVisitor
visitAnnotationExperimental
in class RecordComponentVisitor
descriptor
- the class descriptor of the annotation class.visible
- true if the annotation is visible at runtime.public AnnotationVisitor visitTypeAnnotationExperimental(int typeRef, TypePath typePath, String descriptor, boolean visible)
RecordComponentVisitor
visitTypeAnnotationExperimental
in class RecordComponentVisitor
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.protected AnnotationVisitor createAnnotationRemapper(AnnotationVisitor annotationVisitor)
AnnotationRemapper
.annotationVisitor
- the AnnotationVisitor the remapper must delegate to.Copyright © 2020. All rights reserved.