Package proguard.classfile.editor
Class ClassElementSorter
java.lang.Object
proguard.classfile.editor.ClassElementSorter
- All Implemented Interfaces:
ClassVisitor
This
ClassVisitor sorts the various elements of the classes that it visits: interfaces,
constants, fields, methods, and attributes.-
Constructor Summary
ConstructorsConstructorDescriptionCreates a default `ClassElementSorter` that sorts interfaces, constants and attributes.ClassElementSorter(boolean sortInterfaces, boolean sortConstants, boolean sortMembers, boolean sortAttributes) -
Method Summary
Modifier and TypeMethodDescriptionvoidvisitAnyClass(Clazz clazz) Visits any Clazz instance.voidvisitProgramClass(ProgramClass programClass) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface proguard.classfile.visitor.ClassVisitor
visitLibraryClass
-
Constructor Details
-
ClassElementSorter
public ClassElementSorter()Creates a default `ClassElementSorter` that sorts interfaces, constants and attributes. -
ClassElementSorter
public ClassElementSorter(boolean sortInterfaces, boolean sortConstants, boolean sortMembers, boolean sortAttributes)
-
-
Method Details
-
visitAnyClass
Description copied from interface:ClassVisitorVisits any Clazz instance. The more specific default implementations of this interface delegate to this method.- Specified by:
visitAnyClassin interfaceClassVisitor
-
visitProgramClass
- Specified by:
visitProgramClassin interfaceClassVisitor
-