类 StandardClassMetadata

java.lang.Object
cn.taketoday.core.type.StandardClassMetadata
所有已实现的接口:
ClassMetadata
直接已知子类:
StandardAnnotationMetadata

public class StandardClassMetadata extends Object implements ClassMetadata
ClassMetadata implementation that uses standard reflection to introspect a given Class.
从以下版本开始:
4.0
作者:
Juergen Hoeller, Sam Brannen
  • 字段详细资料

    • introspectedClass

      private final Class<?> introspectedClass
  • 构造器详细资料

    • 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
    • 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
    • getModifiers

      public int getModifiers()
      指定者:
      getModifiers 在接口中 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
    • 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
    • getDeclaredMethods

      public Set<MethodMetadata> getDeclaredMethods()
      从接口复制的说明: ClassMetadata
      Retrieve the method metadata for all user-declared methods on the underlying class, preserving declaration order as far as possible.
      指定者:
      getDeclaredMethods 在接口中 ClassMetadata
      返回:
      a set of MethodMetadata
    • mapMethod

      protected MethodMetadata mapMethod(Method method)
    • equals

      public boolean equals(@Nullable Object obj)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object