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

java.lang.Object
  extended by org.apache.felix.scrplugin.tags.annotation.AnnotationJavaField
All Implemented Interfaces:
JavaField

public class AnnotationJavaField
extends Object
implements JavaField

Description of a java field


Field Summary
protected  AnnotationJavaClassDescription description
           
protected  com.thoughtworks.qdox.model.JavaField field
           
 
Constructor Summary
AnnotationJavaField(com.thoughtworks.qdox.model.JavaField field, AnnotationJavaClassDescription description)
           
 
Method Summary
 String[] getInitializationExpression()
          Return the initial value if this is a static constant.
 String getName()
          The name of the field.
 JavaTag getTagByName(String name)
          Return the given tag.
 String getType()
          The type of the field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

field

protected final com.thoughtworks.qdox.model.JavaField field

description

protected final AnnotationJavaClassDescription description
Constructor Detail

AnnotationJavaField

public AnnotationJavaField(com.thoughtworks.qdox.model.JavaField field,
                           AnnotationJavaClassDescription description)
Parameters:
field - Field
description - description
Method Detail

getInitializationExpression

public String[] getInitializationExpression()
Description copied from interface: JavaField
Return the initial value if this is a static constant. If this field is not an array, an array of length 1 is returned with the value. If this field is an array, the array of values is returned.

Specified by:
getInitializationExpression in interface JavaField
Returns:
The initial value of the field.
See Also:
JavaField.getInitializationExpression()

getName

public String getName()
Description copied from interface: JavaField
The name of the field.

Specified by:
getName in interface JavaField
See Also:
JavaField.getName()

getTagByName

public JavaTag getTagByName(String name)
Description copied from interface: JavaField
Return the given tag.

Specified by:
getTagByName in interface JavaField
Parameters:
name - The tag name.
Returns:
The tag or null.
See Also:
JavaField.getTagByName(String)

getType

public String getType()
Description copied from interface: JavaField
The type of the field.

Specified by:
getType in interface JavaField
See Also:
JavaField.getType()


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.