public class JavaField extends JavaSourceObject implements DirectAccessible
Implements a field that a java class or interface may have.
NOTHING
Modifier and Type | Method and Description |
---|---|
boolean |
isNullable()
Returns whether the value is possibly null.
|
boolean |
isTransient()
Returns whether the field is transient.
|
void |
setNullable(boolean pNullable)
Sets whether the value is possibly null.
|
void |
setTransient(boolean pTransient)
Sets whether the field is transient.
|
void |
setValue(java.lang.Object pValue) |
void |
write(IndentationTarget pTarget)
Returns a string representation of this field.
|
protected void |
writeNoEol(IndentationTarget pTarget) |
getComment, getJavaSource, getName, getProtection, getType, isAbstract, isFinal, isStatic, newComment, setAbstract, setFinal, setJavaSource, setName, setProtection, setStatic, setType
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getType
public void setTransient(boolean pTransient)
Sets whether the field is transient. By default it isn't.
public boolean isTransient()
Returns whether the field is transient. By default it isn't.
public void write(IndentationTarget pTarget) throws java.io.IOException
Returns a string representation of this field.
write
in interface IndentationEngine
write
in class IndentationEngineImpl
java.io.IOException
protected void writeNoEol(IndentationTarget pTarget) throws java.io.IOException
java.io.IOException
public void setValue(java.lang.Object pValue)
public boolean isNullable()
DirectAccessible
Returns whether the value is possibly null.
isNullable
in interface DirectAccessible
public void setNullable(boolean pNullable)
DirectAccessible
Sets whether the value is possibly null.
setNullable
in interface DirectAccessible