org.springframework.core.type

## 类 StandardClassMetadata

- java.lang.Object
- - org.springframework.core.type.StandardClassMetadata

- 所有已实现的接口:
    ClassMetadata
  直接已知子类:
    StandardAnnotationMetadata

      public class StandardClassMetadata
      extends Object
      implements ClassMetadata

  `ClassMetadata` implementation that uses standard reflection to introspect a given `Class`.
  从以下版本开始:
    2.5
  作者:
    Juergen Hoeller

- - ### 构造器概要

    构造器
    构造器和说明
    `StandardClassMetadata(Class<?> introspectedClass)` Create a new StandardClassMetadata wrapper for the given Class.

  - ### 方法概要

    所有方法 实例方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `String` | `getClassName()` Return the name of the underlying class.
    `String` | `getEnclosingClassName()` 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.
    `String` | `getSuperClassName()` Return the name of the super class of the underlying class, or `null` if there is no super class defined.
    `boolean` | `hasEnclosingClass()` 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).
    `boolean` | `hasSuperClass()` Return whether the underlying class has a super class.
    `boolean` | `isAbstract()` Return whether the underlying class is marked as abstract.
    `boolean` | `isAnnotation()` Return whether the underlying class represents an annotation.
    `boolean` | `isConcrete()` Return whether the underlying class represents a concrete class, i.e. neither an interface nor an abstract class.
    `boolean` | `isFinal()` Return whether the underlying class is marked as 'final'.
    `boolean` | `isIndependent()` 确定基础类是否独立，即它是顶级类或嵌套类（静态内部类） 可以独立于封闭类构造。
    `boolean` | `isInterface()` Return whether the underlying class represents an interface.

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### StandardClassMetadata

          public StandardClassMetadata(Class<?> introspectedClass)

      Create a new StandardClassMetadata wrapper for the given Class.
      参数:
        `introspectedClass` - the Class to introspect

  - ### 方法详细资料

    - #### getIntrospectedClass

          public final Class<?> getIntrospectedClass()

      Return the underlying Class.

    - #### getClassName

          public String getClassName()

      从接口复制的说明: `ClassMetadata`
      Return the name of the underlying class.
      指定者:
        `getClassName` 在接口中 `ClassMetadata`

    - #### isInterface

          public boolean isInterface()

      从接口复制的说明: `ClassMetadata`
      Return whether the underlying class represents an interface.
      指定者:
        `isInterface` 在接口中 `ClassMetadata`

    - #### isAnnotation

          public boolean isAnnotation()

      从接口复制的说明: `ClassMetadata`
      Return whether the underlying class represents an annotation.
      指定者:
        `isAnnotation` 在接口中 `ClassMetadata`

    - #### isAbstract

          public boolean isAbstract()

      从接口复制的说明: `ClassMetadata`
      Return whether the underlying class is marked as abstract.
      指定者:
        `isAbstract` 在接口中 `ClassMetadata`

    - #### isConcrete

          public boolean isConcrete()

      从接口复制的说明: `ClassMetadata`
      Return whether the underlying class represents a concrete class, i.e. neither an interface nor an abstract class.
      指定者:
        `isConcrete` 在接口中 `ClassMetadata`

    - #### isFinal

          public boolean isFinal()

      从接口复制的说明: `ClassMetadata`
      Return whether the underlying class is marked as 'final'.
      指定者:
        `isFinal` 在接口中 `ClassMetadata`

    - #### isIndependent

          public boolean isIndependent()

      从接口复制的说明: `ClassMetadata`
      确定基础类是否独立，即它是顶级类或嵌套类（静态内部类） 可以独立于封闭类构造。 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.
      指定者:
        `isIndependent` 在接口中 `ClassMetadata`

    - #### hasEnclosingClass

          public boolean hasEnclosingClass()

      从接口复制的说明: `ClassMetadata`
      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).

      If this method returns `false`, then the underlying class is a top-level class.

      指定者:
        `hasEnclosingClass` 在接口中 `ClassMetadata`

    - #### getEnclosingClassName

          @Nullable
          public String getEnclosingClassName()

      从接口复制的说明: `ClassMetadata`
      Return the name of the enclosing class of the underlying class, or `null` if the underlying class is a top-level class.
      指定者:
        `getEnclosingClassName` 在接口中 `ClassMetadata`

    - #### hasSuperClass

          public boolean hasSuperClass()

      从接口复制的说明: `ClassMetadata`
      Return whether the underlying class has a super class.
      指定者:
        `hasSuperClass` 在接口中 `ClassMetadata`

    - #### getSuperClassName

          @Nullable
          public String getSuperClassName()

      从接口复制的说明: `ClassMetadata`
      Return the name of the super class of the underlying class, or `null` if there is no super class defined.
      指定者:
        `getSuperClassName` 在接口中 `ClassMetadata`

    - #### getInterfaceNames

          public String[] getInterfaceNames()

      从接口复制的说明: `ClassMetadata`
      Return the names of all interfaces that the underlying class implements, or an empty array if there are none.
      指定者:
        `getInterfaceNames` 在接口中 `ClassMetadata`

    - #### getMemberClassNames

          public String[] getMemberClassNames()

      从接口复制的说明: `ClassMetadata`
      Return the names of all classes declared as members of the class represented by this ClassMetadata object. This includes public, protected, default (package) access, and private classes and interfaces declared by the class, but excludes inherited classes and interfaces. An empty array is returned if no member classes or interfaces exist.
      指定者:
        `getMemberClassNames` 在接口中 `ClassMetadata`