public class StandardClassMetadata extends Object implements ClassMetadata
ClassMetadata
implementation that uses standard reflection
to introspect a given Class
.Constructor and Description |
---|
StandardClassMetadata(Class<?> introspectedClass)
Deprecated.
since 5.2 in favor of
StandardAnnotationMetadata |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
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. |
int |
hashCode() |
boolean |
isAbstract()
Return whether the underlying class is marked as abstract.
|
boolean |
isAnnotation()
Return whether the underlying class represents an annotation.
|
boolean |
isFinal()
Return whether the underlying class is marked as 'final'.
|
boolean |
isIndependent()
Determine whether the underlying class is independent, i.e.
|
boolean |
isInterface()
Return whether the underlying class represents an interface.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
hasEnclosingClass, hasSuperClass, isConcrete
@Deprecated public StandardClassMetadata(Class<?> introspectedClass)
StandardAnnotationMetadata
introspectedClass
- the Class to introspectpublic final Class<?> getIntrospectedClass()
public String getClassName()
ClassMetadata
getClassName
in interface ClassMetadata
public boolean isInterface()
ClassMetadata
isInterface
in interface ClassMetadata
public boolean isAnnotation()
ClassMetadata
isAnnotation
in interface ClassMetadata
public boolean isAbstract()
ClassMetadata
isAbstract
in interface ClassMetadata
public boolean isFinal()
ClassMetadata
isFinal
in interface ClassMetadata
public boolean isIndependent()
ClassMetadata
isIndependent
in interface ClassMetadata
@Nullable public String getEnclosingClassName()
ClassMetadata
null
if the underlying class is a top-level class.getEnclosingClassName
in interface ClassMetadata
@Nullable public String getSuperClassName()
ClassMetadata
null
if there is no super class defined.getSuperClassName
in interface ClassMetadata
public String[] getInterfaceNames()
ClassMetadata
getInterfaceNames
in interface ClassMetadata
public String[] getMemberClassNames()
ClassMetadata
getMemberClassNames
in interface ClassMetadata