public class ClassInfo
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
ClassInfo(java.lang.String className)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAnnotation(java.lang.String key,
Annotation annotation)
Add an annotation
|
void |
addChild(java.lang.String clz)
Add a child to the list of children
|
java.util.Collection<Annotation> |
getAnnotations()
Get the annotations
|
java.util.Collection<Annotation> |
getAnnotations(java.lang.String clz)
Get the annotations
|
java.util.Collection<java.lang.String> |
getChildren()
Get the class names of all children of this class
|
java.lang.String |
getClassName()
Get the class name
|
boolean |
isAbstract()
Is the class abstract
|
boolean |
isInterface()
Does the class represent an interface
|
void |
setAbstract(boolean isAbstract)
Set if the class is abstract
|
void |
setInterface(boolean isInterface)
Set if the class represent an interface
|
java.lang.String |
toString()
String representation
|
public ClassInfo(java.lang.String className)
className - The fuly qualified class namepublic java.lang.String getClassName()
public boolean isInterface()
public void setInterface(boolean isInterface)
isInterface - True if interface; false if classpublic boolean isAbstract()
public void setAbstract(boolean isAbstract)
isAbstract - True if abstract; otherwise falsepublic java.util.Collection<Annotation> getAnnotations()
null if no annotationspublic java.util.Collection<Annotation> getAnnotations(java.lang.String clz)
clz - The fully qualified class name for the annotationnull if no annotationspublic void addAnnotation(java.lang.String key,
Annotation annotation)
key - The fully qualified class name of the annotationannotation - The annotationpublic java.util.Collection<java.lang.String> getChildren()
null if no childrenpublic void addChild(java.lang.String clz)
clz - The fully qualified class namepublic java.lang.String toString()
toString in class java.lang.ObjectCopyright ? 2009 Red Hat Middleware LLC (http://www.jboss.com/)