The Spring Framework

org.springframework.core.type
Class StandardClassMetadata

java.lang.Object
  extended by org.springframework.core.type.StandardClassMetadata
All Implemented Interfaces:
ClassMetadata
Direct Known Subclasses:
StandardAnnotationMetadata

public class StandardClassMetadata
extends Object
implements ClassMetadata

ClassMetadata implementation that uses standard reflection to introspect a given Class.

Since:
2.5
Author:
Juergen Hoeller

Constructor Summary
StandardClassMetadata(Class introspectedClass)
           
 
Method Summary
 String getClassName()
          Return the name of the underlying class.
 String[] getInterfaceNames()
          Return the name of all interfaces that the underlying class implements, or an empty array if there are none.
 Class getIntrospectedClass()
           
 String getSuperClassName()
          Return the name of the super class of the underlying class, or null if there is no super class defined.
 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. neither an interface nor an abstract class.
 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

StandardClassMetadata

public StandardClassMetadata(Class introspectedClass)
Method Detail

getIntrospectedClass

public final Class getIntrospectedClass()

getClassName

public String getClassName()
Description copied from interface: ClassMetadata
Return the name of the underlying class.

Specified by:
getClassName in interface ClassMetadata

isInterface

public boolean isInterface()
Description copied from interface: ClassMetadata
Return whether the underlying class represents an interface.

Specified by:
isInterface in interface ClassMetadata

isAbstract

public boolean isAbstract()
Description copied from interface: ClassMetadata
Return whether the underlying class is marked as abstract.

Specified by:
isAbstract in interface ClassMetadata

isConcrete

public boolean isConcrete()
Description copied from interface: ClassMetadata
Return whether the underlying class represents a concrete class, i.e. neither an interface nor an abstract class.

Specified by:
isConcrete in interface ClassMetadata

hasSuperClass

public boolean hasSuperClass()
Description copied from interface: ClassMetadata
Return whether the underlying class has a super class.

Specified by:
hasSuperClass in interface ClassMetadata

getSuperClassName

public String getSuperClassName()
Description copied from interface: ClassMetadata
Return the name of the super class of the underlying class, or null if there is no super class defined.

Specified by:
getSuperClassName in interface ClassMetadata

getInterfaceNames

public String[] getInterfaceNames()
Description copied from interface: ClassMetadata
Return the name of all interfaces that the underlying class implements, or an empty array if there are none.

Specified by:
getInterfaceNames in interface ClassMetadata

The Spring Framework

Copyright © 2002-2007 The Spring Framework.