proguard.classfile.editor
Class ConstantPoolSorter

java.lang.Object
  extended by proguard.classfile.editor.ConstantPoolSorter
All Implemented Interfaces:
ClassVisitor

public class ConstantPoolSorter
extends java.lang.Object
implements ClassVisitor

This ClassVisitor sorts the constant pool entries of the classes that it visits. The sorting order 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()
           
 
Method Summary
 void visitLibraryClass(LibraryClass libraryClass)
           
 void visitProgramClass(ProgramClass programClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantPoolSorter

public ConstantPoolSorter()
Method Detail

visitProgramClass

public void visitProgramClass(ProgramClass programClass)
Specified by:
visitProgramClass in interface ClassVisitor

visitLibraryClass

public void visitLibraryClass(LibraryClass libraryClass)
Specified by:
visitLibraryClass in interface ClassVisitor