Class ConstantPoolSorter

  • All Implemented Interfaces:
    ClassVisitor

    public class ConstantPoolSorter
    extends java.lang.Object
    implements ClassVisitor
    This ClassVisitor sorts the constant pool entries of the program 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 Detail

      • ConstantPoolSorter

        public ConstantPoolSorter()
    • Method Detail

      • visitAnyClass

        public void visitAnyClass​(Clazz clazz)
        Description copied from interface: ClassVisitor
        Visits any Clazz instance. The more specific default implementations of this interface delegate to this method.
        Specified by:
        visitAnyClass in interface ClassVisitor