public class AnnotationRemapper
extends org.objectweb.asm.AnnotationVisitor
AnnotationVisitor that remaps types with a Remapper.| Modifier and Type | Field | Description |
|---|---|---|
protected java.lang.String |
descriptor |
The descriptor of the visited annotation.
|
protected Remapper |
remapper |
The remapper used to remap the types in the visited annotation.
|
| Modifier | Constructor | Description |
|---|---|---|
protected |
AnnotationRemapper(int api,
java.lang.String descriptor,
org.objectweb.asm.AnnotationVisitor annotationVisitor,
Remapper remapper) |
Constructs a new
AnnotationRemapper. |
protected |
AnnotationRemapper(int api,
org.objectweb.asm.AnnotationVisitor annotationVisitor,
Remapper remapper) |
Deprecated.
|
|
AnnotationRemapper(java.lang.String descriptor,
org.objectweb.asm.AnnotationVisitor annotationVisitor,
Remapper remapper) |
Constructs a new
AnnotationRemapper. |
|
AnnotationRemapper(org.objectweb.asm.AnnotationVisitor annotationVisitor,
Remapper remapper) |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected org.objectweb.asm.AnnotationVisitor |
createAnnotationRemapper(java.lang.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.
use
createAnnotationRemapper(String, AnnotationVisitor) instead. |
void |
visit(java.lang.String name,
java.lang.Object value) |
|
org.objectweb.asm.AnnotationVisitor |
visitAnnotation(java.lang.String name,
java.lang.String descriptor) |
|
org.objectweb.asm.AnnotationVisitor |
visitArray(java.lang.String name) |
|
void |
visitEnum(java.lang.String name,
java.lang.String descriptor,
java.lang.String value) |
protected final java.lang.String descriptor
protected final Remapper remapper
@Deprecated
public AnnotationRemapper(org.objectweb.asm.AnnotationVisitor annotationVisitor,
Remapper remapper)
AnnotationRemapper(String, AnnotationVisitor, Remapper) instead.AnnotationRemapper. Subclasses must not use this constructor.
Instead, they must use the AnnotationRemapper(int,AnnotationVisitor,Remapper) version.annotationVisitor - the annotation visitor this remapper must delegate to.remapper - the remapper to use to remap the types in the visited annotation.public AnnotationRemapper(java.lang.String descriptor,
org.objectweb.asm.AnnotationVisitor annotationVisitor,
Remapper remapper)
AnnotationRemapper. Subclasses must not use this constructor.
Instead, they must use the AnnotationRemapper(int,String,AnnotationVisitor,Remapper)
version.descriptor - the descriptor of the visited annotation. May be null.annotationVisitor - the annotation visitor this remapper must delegate to.remapper - the remapper to use to remap the types in the visited annotation.@Deprecated
protected AnnotationRemapper(int api,
org.objectweb.asm.AnnotationVisitor annotationVisitor,
Remapper remapper)
AnnotationRemapper(int, String, AnnotationVisitor, Remapper) instead.AnnotationRemapper.api - the ASM API version supported by this remapper. Must be one of Opcodes.ASM4, Opcodes.ASM5, Opcodes.ASM6, Opcodes.ASM7, Opcodes.ASM8 or Opcodes.ASM9.annotationVisitor - the annotation visitor this remapper must delegate to.remapper - the remapper to use to remap the types in the visited annotation.protected AnnotationRemapper(int api,
java.lang.String descriptor,
org.objectweb.asm.AnnotationVisitor annotationVisitor,
Remapper remapper)
AnnotationRemapper.api - the ASM API version supported by this remapper. Must be one of Opcodes.ASM4, Opcodes.ASM5, Opcodes.ASM6, Opcodes.ASM7, Opcodes.ASM8 or Opcodes.ASM9.descriptor - the descriptor of the visited annotation. May be null.annotationVisitor - the annotation visitor this remapper must delegate to.remapper - the remapper to use to remap the types in the visited annotation.public void visit(java.lang.String name,
java.lang.Object value)
visit in class org.objectweb.asm.AnnotationVisitorpublic void visitEnum(java.lang.String name,
java.lang.String descriptor,
java.lang.String value)
visitEnum in class org.objectweb.asm.AnnotationVisitorpublic org.objectweb.asm.AnnotationVisitor visitAnnotation(java.lang.String name,
java.lang.String descriptor)
visitAnnotation in class org.objectweb.asm.AnnotationVisitorpublic org.objectweb.asm.AnnotationVisitor visitArray(java.lang.String name)
visitArray in class org.objectweb.asm.AnnotationVisitor@Deprecated protected org.objectweb.asm.AnnotationVisitor createAnnotationRemapper(org.objectweb.asm.AnnotationVisitor annotationVisitor)
createAnnotationRemapper(String, AnnotationVisitor) instead.AnnotationRemapper.annotationVisitor - the AnnotationVisitor the remapper must delegate to.protected org.objectweb.asm.AnnotationVisitor createAnnotationRemapper(java.lang.String descriptor,
org.objectweb.asm.AnnotationVisitor annotationVisitor)
AnnotationRemapper.descriptor - the descriptor of the visited annotation.annotationVisitor - the AnnotationVisitor the remapper must delegate to.Copyright © 2022. All rights reserved.