org.apache.ws.jaxme.js
Class JavaSourceObject
- IndentationEngine
public abstract class JavaSourceObject
This class implements a generic JavaSource object.
addLine , addLine , addLine , addLine , addLine , addLine , addLine , addLine , addLine , addLine , addLine , addLine , addLine , addLine , addLine , addLine , addLine , addLine , asString , checkNulls , clear , getLevel , getLines , getLines , getPlaceHolder , indent , isEmpty , moveToBottom , moveToTop , newPlaceHolder , removePlaceHolder , setLevel , unindent , write , write |
JavaSourceObject
protected JavaSourceObject(String pName,
String pType)
JavaSourceObject
protected JavaSourceObject(String pName,
String pType,
JavaSource.Protection pProtection)
JavaSourceObject
protected JavaSourceObject(String pName,
JavaQName pType)
getComment
public JavaComment getComment()
Returns a comment describing this JavaSource object.
getJavaSource
public JavaSource getJavaSource()
Returns the class, to which this JavaSource object belongs.
getName
public String getName()
Returns this JavaSource objects name.
getType
public JavaQName getType()
Returns this JavaSource objects type.
isAbstract
public boolean isAbstract()
Returns whether this JavaSource object is abstract.
isFinal
public boolean isFinal()
Returns whether this is a final JavaSource object.
isStatic
public boolean isStatic()
Returns whether this is a static JavaSource object.
newComment
public JavaComment newComment()
Creates a new Javadoc comment describing this JavaSource object.
setAbstract
public void setAbstract(boolean isAbstract)
Sets whether this JavaSource object is abstract.
setFinal
public void setFinal(boolean pFinal)
Sets whether this is a final JavaSource object.
setJavaSource
protected void setJavaSource(JavaSource pSource)
setName
public void setName(String n)
Sets this JavaSource objects name.
setProtection
public void setProtection(JavaSource.Protection p)
Sets this JavaSource objects protection.
p
- null, "public", "protected" or "private"
setStatic
public void setStatic(boolean pStatic)
Sets whether this is a static JavaSource object.
setType
public void setType(JavaQName t)
Sets this JavaSource objects type.