|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.annotation.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. |
void |
registerAnnotationProxy(Class proxyClass,
String annotationName)
Register an annotation together with its proxy implementation. |
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 filepublic void registerAnnotationProxy(Class proxyClass, String annotationName)
proxyClass
- the proxy classannotationName
- the name of the annotationpublic 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
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |