public class ClassRenamer extends java.lang.Object implements ClassVisitor, MemberVisitor, ConstantVisitor
ClassVisitor
renames the class names and class member names of the classes it
visits.Constructor and Description |
---|
ClassRenamer(java.util.function.Function<Clazz,java.lang.String> classNameFunction) |
ClassRenamer(java.util.function.Function<Clazz,java.lang.String> classNameFunction,
java.util.function.BiFunction<Clazz,Member,java.lang.String> memberNameFunction) |
ClassRenamer(java.util.function.Function<Clazz,java.lang.String> classNameFunction,
java.util.function.BiFunction<Clazz,Member,java.lang.String> memberNameFunction,
ClassVisitor extraClassVisitor,
MemberVisitor extraMemberVisitor) |
ClassRenamer(java.util.function.Function<Clazz,java.lang.String> classNameFunction,
ClassVisitor extraClassVisitor,
MemberVisitor extraMemberVisitor) |
Modifier and Type | Method and Description |
---|---|
void |
visitAnyClass(Clazz clazz)
Visits any Clazz instance.
|
void |
visitClassConstant(Clazz clazz,
ClassConstant classConstant) |
void |
visitLibraryClass(LibraryClass libraryClass) |
void |
visitLibraryMember(LibraryClass libraryClass,
LibraryMember libraryMember) |
void |
visitProgramClass(ProgramClass programClass) |
void |
visitProgramMember(ProgramClass programClass,
ProgramMember programMember) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visitAnyMember, visitLibraryField, visitLibraryMethod, visitProgramField, visitProgramMethod
visitAnyConstant, visitAnyMethodrefConstant, visitAnyRefConstant, visitDoubleConstant, visitDynamicConstant, visitFieldrefConstant, visitFloatConstant, visitIntegerConstant, visitInterfaceMethodrefConstant, visitInvokeDynamicConstant, visitLongConstant, visitMethodHandleConstant, visitMethodrefConstant, visitMethodTypeConstant, visitModuleConstant, visitNameAndTypeConstant, visitPackageConstant, visitPrimitiveArrayConstant, visitStringConstant, visitUtf8Constant
public ClassRenamer(java.util.function.Function<Clazz,java.lang.String> classNameFunction)
public ClassRenamer(java.util.function.Function<Clazz,java.lang.String> classNameFunction, java.util.function.BiFunction<Clazz,Member,java.lang.String> memberNameFunction)
public ClassRenamer(java.util.function.Function<Clazz,java.lang.String> classNameFunction, ClassVisitor extraClassVisitor, MemberVisitor extraMemberVisitor)
public ClassRenamer(java.util.function.Function<Clazz,java.lang.String> classNameFunction, java.util.function.BiFunction<Clazz,Member,java.lang.String> memberNameFunction, ClassVisitor extraClassVisitor, MemberVisitor extraMemberVisitor)
public void visitAnyClass(Clazz clazz)
ClassVisitor
visitAnyClass
in interface ClassVisitor
public void visitProgramClass(ProgramClass programClass)
visitProgramClass
in interface ClassVisitor
public void visitLibraryClass(LibraryClass libraryClass)
visitLibraryClass
in interface ClassVisitor
public void visitProgramMember(ProgramClass programClass, ProgramMember programMember)
visitProgramMember
in interface MemberVisitor
public void visitLibraryMember(LibraryClass libraryClass, LibraryMember libraryMember)
visitLibraryMember
in interface MemberVisitor
public void visitClassConstant(Clazz clazz, ClassConstant classConstant)
visitClassConstant
in interface ConstantVisitor