|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.core.type.StandardClassMetadata
public class StandardClassMetadata
ClassMetadata implementation that uses standard reflection
to introspect a given Class.
| Constructor Summary | |
|---|---|
StandardClassMetadata(Class introspectedClass)
Create a new StandardClassMetadata wrapper for the given Class. |
|
| Method Summary | |
|---|---|
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 has an enclosing class (i.e. |
boolean |
hasSuperClass()
Return whether the underlying class has a super class. |
boolean |
isAbstract()
Return whether the underlying class is marked as abstract. |
boolean |
isConcrete()
Return whether the underlying class represents a concrete class, i.e. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StandardClassMetadata(Class introspectedClass)
introspectedClass - the Class to introspect| Method Detail |
|---|
public final Class getIntrospectedClass()
public String getClassName()
ClassMetadata
getClassName in interface ClassMetadatapublic boolean isInterface()
ClassMetadata
isInterface in interface ClassMetadatapublic boolean isAbstract()
ClassMetadata
isAbstract in interface ClassMetadatapublic boolean isConcrete()
ClassMetadata
isConcrete in interface ClassMetadatapublic boolean isFinal()
ClassMetadata
isFinal in interface ClassMetadatapublic boolean isIndependent()
ClassMetadata
isIndependent in interface ClassMetadatapublic boolean hasEnclosingClass()
ClassMetadataIf this method returns false, then the
underlying class is a top-level class.
hasEnclosingClass in interface ClassMetadatapublic String getEnclosingClassName()
ClassMetadatanull if the underlying class is a top-level class.
getEnclosingClassName in interface ClassMetadatapublic boolean hasSuperClass()
ClassMetadata
hasSuperClass in interface ClassMetadatapublic String getSuperClassName()
ClassMetadatanull if there is no super class defined.
getSuperClassName in interface ClassMetadatapublic String[] getInterfaceNames()
ClassMetadata
getInterfaceNames in interface ClassMetadatapublic String[] getMemberClassNames()
ClassMetadata
getMemberClassNames in interface ClassMetadata
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||