com.thoughtworks.qdox.model
Class JavaField

java.lang.Object
  extended by com.thoughtworks.qdox.model.AbstractBaseJavaEntity
      extended by com.thoughtworks.qdox.model.AbstractJavaEntity
          extended by com.thoughtworks.qdox.model.JavaField
All Implemented Interfaces:
Member, Serializable, Comparable

public class JavaField
extends AbstractJavaEntity
implements Member

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.thoughtworks.qdox.model.AbstractJavaEntity
modifiers
 
Fields inherited from class com.thoughtworks.qdox.model.AbstractBaseJavaEntity
name, parent
 
Constructor Summary
JavaField()
           
JavaField(String name)
           
JavaField(Type type, String name)
           
 
Method Summary
 int compareTo(Object o)
           
 String getCallSignature()
           
 String getDeclarationSignature(boolean withModifiers)
           
 String getInitializationExpression()
          Get the original expression used to initialize the field.
 Type getType()
           
 void setInitializationExpression(String initializationExpression)
           
 void setType(Type type)
           
 String toString()
           
protected  void writeBody(IndentBuffer result)
           
 
Methods inherited from class com.thoughtworks.qdox.model.AbstractJavaEntity
getCodeBlock, getComment, getModifiers, getNamedParameter, getParentClass, getSource, getTagByName, getTags, getTagsByName, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile, setComment, setModifiers, setParentClass, setTags, write, writeAccessibilityModifier, writeAllModifiers, writeNonAccessibilityModifiers
 
Methods inherited from class com.thoughtworks.qdox.model.AbstractBaseJavaEntity
getAnnotations, getLineNumber, getName, getParent, setAnnotations, setLineNumber, setName, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaField

public JavaField()

JavaField

public JavaField(String name)

JavaField

public JavaField(Type type,
                 String name)
Method Detail

getType

public Type getType()

writeBody

protected void writeBody(IndentBuffer result)
Specified by:
writeBody in class AbstractJavaEntity

setType

public void setType(Type type)

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

getDeclarationSignature

public String getDeclarationSignature(boolean withModifiers)
Specified by:
getDeclarationSignature in interface Member

getCallSignature

public String getCallSignature()
Specified by:
getCallSignature in interface Member

getInitializationExpression

public String getInitializationExpression()
Get the original expression used to initialize the field.

Returns:
initialization as string.

setInitializationExpression

public void setInitializationExpression(String initializationExpression)

toString

public String toString()
Overrides:
toString in class Object
See Also:
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Field.html#toString()


Copyright © 2002-2011. All Rights Reserved.