protected static class TypeWriter.Default.ForInlining.FramePreservingRemapper extends RemappingClassAdapter
Modifier and Type | Class and Description |
---|---|
protected static class |
TypeWriter.Default.ForInlining.FramePreservingRemapper.FramePreservingMethodRemapper
A method remapper that does not delegate to its underlying variable sorting mechanism as this is never required for
renaming a type.
|
className, remapper
api, cv
Modifier | Constructor and Description |
---|---|
protected |
FramePreservingRemapper(ClassVisitor classVisitor,
Remapper remapper)
Creates a new frame preserving class remapper.
|
Modifier and Type | Method and Description |
---|---|
protected MethodVisitor |
createRemappingMethodAdapter(int modifiers,
String adaptedDescriptor,
MethodVisitor methodVisitor) |
static ClassVisitor |
of(String originalName,
String targetName,
ClassVisitor classVisitor)
Creates a class visitor that renames the instrumented type from the original name to the target name if those
names are not equal.
|
String |
toString() |
createRemappingAnnotationAdapter, createRemappingFieldAdapter, visit, visitAnnotation, visitField, visitInnerClass, visitMethod, visitOuterClass, visitTypeAnnotation
visitAttribute, visitEnd, visitSource
protected FramePreservingRemapper(ClassVisitor classVisitor, Remapper remapper)
classVisitor
- The class visitor that is responsible for writing the class.remapper
- The remapper to use for renaming the instrumented type.public static ClassVisitor of(String originalName, String targetName, ClassVisitor classVisitor)
originalName
- The instrumented type's original name.targetName
- The instrumented type's actual name.classVisitor
- The class visitor that is responsible for creating the type.protected MethodVisitor createRemappingMethodAdapter(int modifiers, String adaptedDescriptor, MethodVisitor methodVisitor)
createRemappingMethodAdapter
in class RemappingClassAdapter
Copyright © 2014–2016. All rights reserved.