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, setTypeaddLine, 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, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypepublic 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 IndentationEnginewrite in class IndentationEngineImpljava.io.IOExceptionprotected void writeNoEol(IndentationTarget pTarget) throws java.io.IOException
java.io.IOExceptionpublic void setValue(java.lang.Object pValue)
public boolean isNullable()
DirectAccessibleReturns whether the value is possibly null.
isNullable in interface DirectAccessiblepublic void setNullable(boolean pNullable)
DirectAccessibleSets whether the value is possibly null.
setNullable in interface DirectAccessible