proguard.classfile.editor
Class ConstantPoolSorter
java.lang.Object
proguard.classfile.editor.ConstantPoolSorter
- All Implemented Interfaces:
- ClassFileVisitor
- public class ConstantPoolSorter
- extends Object
- implements ClassFileVisitor
This ClassFileVisitor sorts the constant pool entries of the classes that
it visits. The sorting is based on the types of the constant pool entries
in the first place, and on their contents in the second place.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConstantPoolSorter
public ConstantPoolSorter(int codeLength)
- Creates a new ConstantPoolSorter.
- Parameters:
codeLength - an estimate of the maximum length of all the code that
will be edited.
visitProgramClassFile
public void visitProgramClassFile(ProgramClassFile programClassFile)
- Specified by:
visitProgramClassFile in interface ClassFileVisitor
visitLibraryClassFile
public void visitLibraryClassFile(LibraryClassFile libraryClassFile)
- Specified by:
visitLibraryClassFile in interface ClassFileVisitor