|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.config.java.model.ModelClass
public class ModelClass
Abstract representation of a class, free from java reflection.
Base class used within the internal JavaConfig metamodel for
representing Configuration
classes.
Constructor Summary | |
---|---|
ModelClass()
Creates a new and empty ModelClass instance. |
|
ModelClass(java.lang.String name)
Creates a new ModelClass instance |
|
ModelClass(java.lang.String name,
boolean isInterface)
Creates a new ModelClass instance |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
static ModelClass |
forClass(java.lang.Class<?> clazz)
Creates a new ModelClass for a given Class . |
java.lang.String |
getName()
Returns the fully-qualified name of this class. |
java.lang.String |
getSimpleName()
Returns the non-qualified name of this class. |
java.lang.String |
getSource()
Returns a resource path-formatted representation of the .java file that declares this class |
int |
hashCode()
|
boolean |
isInterface()
Returns whether the class represented by this ModelClass instance is an interface. |
void |
setInterface(boolean isInterface)
Signifies that this class is (true) or is not (false) an interface. |
void |
setName(java.lang.String className)
Sets the fully-qualified name of this class. |
void |
setSource(java.lang.Object source)
Set the source location for this class. |
java.lang.String |
toString()
Given a ModelClass instance representing a class com.acme.Foo, this method will return |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ModelClass()
public ModelClass(java.lang.String name)
name
- fully-qualified name of the class being representedpublic ModelClass(java.lang.String name, boolean isInterface)
name
- fully-qualified name of the class being representedisInterface
- whether the represented type is an interfaceMethod Detail |
---|
public java.lang.String getName()
public void setName(java.lang.String className)
public java.lang.String getSimpleName()
public boolean isInterface()
public void setInterface(boolean isInterface)
public java.lang.String getSource()
getSource
in interface org.springframework.beans.BeanMetadataElement
public void setSource(java.lang.Object source)
source
- resource path to the .java file that declares this class.public static ModelClass forClass(java.lang.Class<?> clazz)
Class
. A very limited subset of data is
populated for the class.
public java.lang.String toString()
ModelClass: name=Foo
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |