com.thoughtworks.qdox.model
Class AbstractJavaEntity

java.lang.Object
  extended bycom.thoughtworks.qdox.model.AbstractJavaEntity
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AbstractInheritableJavaEntity, JavaField

public abstract class AbstractJavaEntity
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
protected  List modifiers
           
protected  String name
           
 
Constructor Summary
AbstractJavaEntity()
           
 
Method Summary
 String getComment()
           
 String[] getModifiers()
          Return list of modifiers as Strings.
 String getName()
           
 String getNamedParameter(String tagName, String parameterName)
          Convenience method for getTagByName(String).getNamedParameter(String) that also checks for null tag.
 DocletTag getTagByName(String name)
           
 DocletTag[] getTags()
           
 DocletTag[] getTagsByName(String name)
           
 boolean isAbstract()
           
 boolean isFinal()
           
 boolean isPrivate()
           
 boolean isProtected()
           
 boolean isPublic()
           
 boolean isStatic()
           
 boolean isSynchronized()
           
 boolean isTransient()
           
 void setComment(String comment)
           
 void setModifiers(String[] modifiers)
           
 void setName(String name)
           
 void setTags(List tags)
           
 String toString()
           
protected  void write(IndentBuffer result)
           
protected  void writeAccessibilityModifier(IndentBuffer result)
           
protected  void writeAllModifiers(IndentBuffer result)
           
protected abstract  void writeBody(IndentBuffer result)
           
protected  void writeNonAccessibilityModifiers(IndentBuffer result)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

protected String name

modifiers

protected List modifiers
Constructor Detail

AbstractJavaEntity

public AbstractJavaEntity()
Method Detail

getName

public String getName()

getModifiers

public String[] getModifiers()
Return list of modifiers as Strings. (public, private, protected, final, abstract, static)


getComment

public String getComment()

getTags

public DocletTag[] getTags()

getTagsByName

public DocletTag[] getTagsByName(String name)

getTagByName

public DocletTag getTagByName(String name)

getNamedParameter

public String getNamedParameter(String tagName,
                                String parameterName)
Convenience method for getTagByName(String).getNamedParameter(String) that also checks for null tag.

Since:
1.3

toString

public String toString()

write

protected void write(IndentBuffer result)

writeBody

protected abstract void writeBody(IndentBuffer result)

setName

public void setName(String name)

setModifiers

public void setModifiers(String[] modifiers)

setComment

public void setComment(String comment)

setTags

public void setTags(List tags)

isAbstract

public boolean isAbstract()

isPublic

public boolean isPublic()

isPrivate

public boolean isPrivate()

isProtected

public boolean isProtected()

isStatic

public boolean isStatic()

isFinal

public boolean isFinal()

isSynchronized

public boolean isSynchronized()

isTransient

public boolean isTransient()

writeNonAccessibilityModifiers

protected void writeNonAccessibilityModifiers(IndentBuffer result)

writeAccessibilityModifier

protected void writeAccessibilityModifier(IndentBuffer result)

writeAllModifiers

protected void writeAllModifiers(IndentBuffer result)


Copyright © 2002-2003 ThoughtWorks, Inc. All Rights Reserved.