ProGuard

proguard.classfile.editor
Class ConstantPoolSorter

java.lang.Object
  extended byproguard.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.


Constructor Summary
ConstantPoolSorter(int codeLength)
          Creates a new ConstantPoolSorter.
 
Method Summary
 void visitLibraryClassFile(LibraryClassFile libraryClassFile)
           
 void visitProgramClassFile(ProgramClassFile programClassFile)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

visitProgramClassFile

public void visitProgramClassFile(ProgramClassFile programClassFile)
Specified by:
visitProgramClassFile in interface ClassFileVisitor

visitLibraryClassFile

public void visitLibraryClassFile(LibraryClassFile libraryClassFile)
Specified by:
visitLibraryClassFile in interface ClassFileVisitor

ProGuard