public class ClassElementSorter extends java.lang.Object implements ClassVisitor
ClassVisitor
sorts the various elements of the classes that it visits: interfaces,
constants, fields, methods, and attributes.Constructor and Description |
---|
ClassElementSorter()
Creates a default `ClassElementSorter` that sorts interfaces, constants and attributes.
|
ClassElementSorter(boolean sortInterfaces,
boolean sortConstants,
boolean sortMembers,
boolean sortAttributes) |
Modifier and Type | Method and Description |
---|---|
void |
visitAnyClass(Clazz clazz)
Visits any Clazz instance.
|
void |
visitProgramClass(ProgramClass programClass) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
visitLibraryClass
public ClassElementSorter()
public ClassElementSorter(boolean sortInterfaces, boolean sortConstants, boolean sortMembers, boolean sortAttributes)
public void visitAnyClass(Clazz clazz)
ClassVisitor
visitAnyClass
in interface ClassVisitor
public void visitProgramClass(ProgramClass programClass)
visitProgramClass
in interface ClassVisitor