Class ClassMemberSorter

  • All Implemented Interfaces:
    java.util.Comparator, ClassVisitor

    public class ClassMemberSorter
    extends java.lang.Object
    implements ClassVisitor, java.util.Comparator
    This ClassVisitor sorts the class members of the classes that it visits. The sorting order is based on the access flags, the names, and the descriptors.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(java.lang.Object object1, java.lang.Object object2)  
      void visitAnyClass​(Clazz clazz)
      Visits any Clazz instance.
      void visitProgramClass​(ProgramClass programClass)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Constructor Detail

      • ClassMemberSorter

        public ClassMemberSorter()
    • 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
      • compare

        public int compare​(java.lang.Object object1,
                           java.lang.Object object2)
        Specified by:
        compare in interface java.util.Comparator