org.apache.felix.scrplugin.tags.annotation
Class AnnotationJavaClassDescription

java.lang.Object
  extended by org.apache.felix.scrplugin.tags.qdox.QDoxJavaClassDescription
      extended by 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.


Field Summary
 
Fields inherited from class org.apache.felix.scrplugin.tags.qdox.QDoxJavaClassDescription
clazz, javaClass, manager
 
Fields inherited from interface org.apache.felix.scrplugin.tags.JavaClassDescription
EMPTY_RESULT
 
Constructor Summary
AnnotationJavaClassDescription(Class<?> clazz, com.thoughtworks.qdox.model.JavaClass javaClass, JavaClassDescriptorManager manager)
           
 
Method Summary
 JavaField getFieldByName(String name)
          Get the field with the name.
 JavaField[] getFields()
          Get the fields of this class
protected  JavaClassDescriptorManager getManager()
           
 JavaTag getTagByName(String name)
          Get the java class tag with the name.
 JavaTag[] getTagsByName(String name, boolean inherited)
          Get all class tags with this name.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnnotationJavaClassDescription

public AnnotationJavaClassDescription(Class<?> clazz,
                                      com.thoughtworks.qdox.model.JavaClass javaClass,
                                      JavaClassDescriptorManager manager)
Parameters:
clazz - Java class
javaClass - QDox source
manager - description manager
Method Detail

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 © 2013 The Apache Software Foundation. All Rights Reserved.