Class ClassElementSorter

  • All Implemented Interfaces:
    ClassVisitor

    public class ClassElementSorter
    extends java.lang.Object
    implements ClassVisitor
    This ClassVisitor sorts the various elements of the classes that it visits: interfaces, constants, fields, methods, and attributes.
    • Constructor Summary

      Constructors 
      Constructor Description
      ClassElementSorter()
      Creates a default `ClassElementSorter` that sorts interfaces, constants and attributes.
      ClassElementSorter​(boolean sortInterfaces, boolean sortConstants, boolean sortMembers, boolean sortAttributes)  
    • Constructor Detail

      • ClassElementSorter

        public ClassElementSorter()
        Creates a default `ClassElementSorter` that sorts interfaces, constants and attributes.
      • ClassElementSorter

        public ClassElementSorter​(boolean sortInterfaces,
                                  boolean sortConstants,
                                  boolean sortMembers,
                                  boolean sortAttributes)
    • 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