Package proguard.classfile.util
Class MemberRenamer
- java.lang.Object
-
- proguard.classfile.util.MemberRenamer
-
- All Implemented Interfaces:
MemberVisitor
public class MemberRenamer extends java.lang.Object implements MemberVisitor
ThisMemberVisitor
renames the class member names of the classes it visits.
-
-
Constructor Summary
Constructors Constructor Description MemberRenamer(java.util.function.BiFunction<Clazz,Member,java.lang.String> memberNameFunction)
MemberRenamer(java.util.function.BiFunction<Clazz,Member,java.lang.String> memberNameFunction, MemberVisitor extraMemberVisitor)
MemberRenamer(java.util.function.Function<Clazz,java.lang.String> classNameFunction, MemberVisitor extraMemberVisitor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
visitLibraryMember(LibraryClass libraryClass, LibraryMember libraryMember)
void
visitProgramMember(ProgramClass programClass, ProgramMember programMember)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface proguard.classfile.visitor.MemberVisitor
visitAnyMember, visitLibraryField, visitLibraryMethod, visitProgramField, visitProgramMethod
-
-
-
-
Constructor Detail
-
MemberRenamer
public MemberRenamer(java.util.function.BiFunction<Clazz,Member,java.lang.String> memberNameFunction)
-
MemberRenamer
public MemberRenamer(java.util.function.Function<Clazz,java.lang.String> classNameFunction, MemberVisitor extraMemberVisitor)
-
MemberRenamer
public MemberRenamer(java.util.function.BiFunction<Clazz,Member,java.lang.String> memberNameFunction, MemberVisitor extraMemberVisitor)
-
-
Method Detail
-
visitProgramMember
public void visitProgramMember(ProgramClass programClass, ProgramMember programMember)
- Specified by:
visitProgramMember
in interfaceMemberVisitor
-
visitLibraryMember
public void visitLibraryMember(LibraryClass libraryClass, LibraryMember libraryMember)
- Specified by:
visitLibraryMember
in interfaceMemberVisitor
-
-