org.apache.felix.scrplugin.tags.annotation
Class AnnotationJavaClassDescription
java.lang.Object
org.apache.felix.scrplugin.tags.qdox.QDoxJavaClassDescription
org.apache.felix.scrplugin.tags.annotation.AnnotationJavaClassDescription
- All Implemented Interfaces:
- JavaClassDescription, ModifiableJavaClassDescription
public class AnnotationJavaClassDescription
- extends QDoxJavaClassDescription
Reading class description based on java annotations. This extends
QDoxJavaClassDescription
to re-use annotation-independent logic and
automatic generation of bind/unbind methods.
Methods inherited from class org.apache.felix.scrplugin.tags.qdox.QDoxJavaClassDescription |
addMethods, createMethod, getCompiledClass, getExternalFieldByName, getImplementedInterfaces, getMethodBySignature, getMethods, getName, getReferencedClass, getSuperClass, isA, isAbstract, isInterface, isPublic, searchImport, toString |
AnnotationJavaClassDescription
public AnnotationJavaClassDescription(Class<?> clazz,
com.thoughtworks.qdox.model.JavaClass javaClass,
JavaClassDescriptorManager manager)
- Parameters:
clazz
- Java classjavaClass
- QDox sourcemanager
- description manager
getTagByName
public JavaTag getTagByName(String name)
- Description copied from interface:
JavaClassDescription
- Get the java class tag with the name.
- Specified by:
getTagByName
in interface JavaClassDescription
- Overrides:
getTagByName
in class QDoxJavaClassDescription
- Returns:
- the tag or null.
- See Also:
JavaClassDescription.getTagByName(String)
getTagsByName
public JavaTag[] getTagsByName(String name,
boolean inherited)
throws SCRDescriptorException
- Description copied from interface:
JavaClassDescription
- Get all class tags with this name.
- Specified by:
getTagsByName
in interface JavaClassDescription
- Overrides:
getTagsByName
in class QDoxJavaClassDescription
inherited
- If true, parent classes are searched as well.
- Returns:
- An array of tags or the empty array.
- Throws:
SCRDescriptorException
- See Also:
JavaClassDescription.getTagsByName(String, boolean)
getFields
public JavaField[] getFields()
- Description copied from interface:
JavaClassDescription
- Get the fields of this class
- Specified by:
getFields
in interface JavaClassDescription
- Overrides:
getFields
in class QDoxJavaClassDescription
- Returns:
- All fields or an empty array
- See Also:
JavaClassDescription.getFields()
getFieldByName
public JavaField getFieldByName(String name)
throws SCRDescriptorException
- Description copied from interface:
JavaClassDescription
- Get the field with the name.
- Specified by:
getFieldByName
in interface JavaClassDescription
- Overrides:
getFieldByName
in class QDoxJavaClassDescription
- Parameters:
name
- The name of the field
- Returns:
- The field with the name or null.
- Throws:
SCRDescriptorException
- See Also:
JavaClassDescription.getFieldByName(String)
getManager
protected JavaClassDescriptorManager getManager()
Copyright © 2011 Apache Software Foundation. All Rights Reserved.