Package org.objectweb.asm.commons
Class RecordComponentRemapper
java.lang.Object
org.objectweb.asm.RecordComponentVisitor
org.objectweb.asm.commons.RecordComponentRemapper
public class RecordComponentRemapper
extends org.objectweb.asm.RecordComponentVisitor
A
RecordComponentVisitor
that remaps types with a Remapper
.- Author:
- Remi Forax
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Remapper
The remapper used to remap the types in the visited field.Fields inherited from class org.objectweb.asm.RecordComponentVisitor
api, delegate
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
RecordComponentRemapper
(int api, org.objectweb.asm.RecordComponentVisitor recordComponentVisitor, Remapper remapper) Constructs a newRecordComponentRemapper
.RecordComponentRemapper
(org.objectweb.asm.RecordComponentVisitor recordComponentVisitor, Remapper remapper) Constructs a newRecordComponentRemapper
. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.objectweb.asm.AnnotationVisitor
createAnnotationRemapper
(String descriptor, org.objectweb.asm.AnnotationVisitor annotationVisitor) Constructs a new remapper for annotations.protected org.objectweb.asm.AnnotationVisitor
createAnnotationRemapper
(org.objectweb.asm.AnnotationVisitor annotationVisitor) Deprecated.org.objectweb.asm.AnnotationVisitor
visitAnnotation
(String descriptor, boolean visible) org.objectweb.asm.AnnotationVisitor
visitTypeAnnotation
(int typeRef, org.objectweb.asm.TypePath typePath, String descriptor, boolean visible) Methods inherited from class org.objectweb.asm.RecordComponentVisitor
getDelegate, visitAttribute, visitEnd
-
Field Details
-
remapper
The remapper used to remap the types in the visited field.
-
-
Constructor Details
-
RecordComponentRemapper
public RecordComponentRemapper(org.objectweb.asm.RecordComponentVisitor recordComponentVisitor, Remapper remapper) Constructs a newRecordComponentRemapper
. Subclasses must not use this constructor. Instead, they must use theRecordComponentRemapper(int,RecordComponentVisitor,Remapper)
version.- Parameters:
recordComponentVisitor
- the record component visitor this remapper must delegate to.remapper
- the remapper to use to remap the types in the visited record component.
-
RecordComponentRemapper
protected RecordComponentRemapper(int api, org.objectweb.asm.RecordComponentVisitor recordComponentVisitor, Remapper remapper) Constructs a newRecordComponentRemapper
.- Parameters:
api
- the ASM API version supported by this remapper. Must be one ofOpcodes.ASM8
orOpcodes.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.
-
-
Method Details
-
visitAnnotation
- Overrides:
visitAnnotation
in classorg.objectweb.asm.RecordComponentVisitor
-
visitTypeAnnotation
public org.objectweb.asm.AnnotationVisitor visitTypeAnnotation(int typeRef, org.objectweb.asm.TypePath typePath, String descriptor, boolean visible) - Overrides:
visitTypeAnnotation
in classorg.objectweb.asm.RecordComponentVisitor
-
createAnnotationRemapper
@Deprecated protected org.objectweb.asm.AnnotationVisitor createAnnotationRemapper(org.objectweb.asm.AnnotationVisitor annotationVisitor) Deprecated.usecreateAnnotationRemapper(String, AnnotationVisitor)
instead.Constructs a new remapper for annotations. The default implementation of this method returns a newAnnotationRemapper
.- Parameters:
annotationVisitor
- the AnnotationVisitor the remapper must delegate to.- Returns:
- the newly created remapper.
-
createAnnotationRemapper
protected org.objectweb.asm.AnnotationVisitor createAnnotationRemapper(String descriptor, org.objectweb.asm.AnnotationVisitor annotationVisitor) Constructs a new remapper for annotations. The default implementation of this method returns a newAnnotationRemapper
.- Parameters:
descriptor
- the descriptor sof the visited annotation.annotationVisitor
- the AnnotationVisitor the remapper must delegate to.- Returns:
- the newly created remapper.
-
createAnnotationRemapper(String, AnnotationVisitor)
instead.