类 ClassMemberSorter

  • 所有已实现的接口:
    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.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      int compare​(java.lang.Object object1, java.lang.Object object2)  
      void visitAnyClass​(Clazz clazz)
      Visits any Clazz instance.
      void visitProgramClass​(ProgramClass programClass)  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • 从接口继承的方法 java.util.Comparator

        equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • 构造器详细资料

      • ClassMemberSorter

        public ClassMemberSorter()
    • 方法详细资料

      • visitAnyClass

        public void visitAnyClass​(Clazz clazz)
        从接口复制的说明: ClassVisitor
        Visits any Clazz instance. The more specific default implementations of this interface delegate to this method.
        指定者:
        visitAnyClass 在接口中 ClassVisitor
      • compare

        public int compare​(java.lang.Object object1,
                           java.lang.Object object2)
        指定者:
        compare 在接口中 java.util.Comparator