|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.aspectwerkz.annotation.AnnotationManager
public class AnnotationManager
Parses and retrieves annotations.
| Constructor Summary | |
|---|---|
AnnotationManager(ClassLoader loader)
Constructs a new annotation manager and had the given ClassLoader to the search path |
|
| Method Summary | |
|---|---|
void |
addSource(String srcFile)
Adds a source file. |
void |
addSourceTrees(String[] srcDirs)
Adds a source tree to the builder. |
com.thoughtworks.qdox.model.JavaClass[] |
getAllClasses()
Returns all classes. |
Annotation[] |
getAnnotations(String name,
com.thoughtworks.qdox.model.JavaClass clazz)
Returns the annotations with a specific name for a specific class. |
Annotation[] |
getAnnotations(String name,
com.thoughtworks.qdox.model.JavaField field)
Returns the annotations with a specific name for a specific field. |
Annotation[] |
getAnnotations(String name,
com.thoughtworks.qdox.model.JavaMethod method)
Returns the annotations with a specific name for a specific method. |
static Annotation |
instantiateNestedAnnotation(Class annotationClass,
Map elements)
Instantiate an annotation given its interface and elements It is used only for nested annotation hence requires typed annotation without nicknames. |
void |
registerAnnotationProxy(Class proxyClass,
String docletName)
Register an annotation together with its proxy implementation under a doclet name |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnnotationManager(ClassLoader loader)
loader - | Method Detail |
|---|
public void addSourceTrees(String[] srcDirs)
srcDirs - the source treespublic void addSource(String srcFile)
srcFile - the source file
public void registerAnnotationProxy(Class proxyClass,
String docletName)
proxyClass - the proxy classdocletName - the name of the doclet. The annotation name is the proxy FQN.public com.thoughtworks.qdox.model.JavaClass[] getAllClasses()
public Annotation[] getAnnotations(String name,
com.thoughtworks.qdox.model.JavaClass clazz)
name - clazz -
public Annotation[] getAnnotations(String name,
com.thoughtworks.qdox.model.JavaMethod method)
name - method -
public Annotation[] getAnnotations(String name,
com.thoughtworks.qdox.model.JavaField field)
name - field -
public static Annotation instantiateNestedAnnotation(Class annotationClass,
Map elements)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||