类 StandardClassMetadata

    • 构造器概要

      构造器 
      构造器说明
      StandardClassMetadata​(Class<?> introspectedClass)
      Create a new StandardClassMetadata wrapper for the given Class.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型方法说明
      StringgetClassName()
      Return the name of the underlying class.
      StringgetEnclosingClassName()
      Return the name of the enclosing class of the underlying class, or null if the underlying class is a top-level class.
      String[]getInterfaceNames()
      Return the names of all interfaces that the underlying class implements, or an empty array if there are none.
      Class<?>getIntrospectedClass()
      Return the underlying Class.
      String[]getMemberClassNames()
      Return the names of all classes declared as members of the class represented by this ClassMetadata object.
      StringgetSuperClassName()
      Return the name of the super class of the underlying class, or null if there is no super class defined.
      booleanhasEnclosingClass()
      Return whether the underlying class is declared within an enclosing class (i.e. the underlying class is an inner/nested class or a local class within a method).
      booleanhasSuperClass()
      Return whether the underlying class has a super class.
      booleanisAbstract()
      Return whether the underlying class is marked as abstract.
      booleanisAnnotation()
      Return whether the underlying class represents an annotation.
      booleanisConcrete()
      Return whether the underlying class represents a concrete class, i.e. neither an interface nor an abstract class.
      booleanisFinal()
      Return whether the underlying class is marked as 'final'.
      booleanisIndependent()
      Determine whether the underlying class is independent, i.e. whether it is a top-level class or a nested class (static inner class) that can be constructed independently from an enclosing class.
      booleanisInterface()
      Return whether the underlying class represents an interface.