public class JFieldVar extends JVar implements JDocCommentable
JDocComment
associated with itModifier and Type | Field and Description |
---|---|
private JDocComment |
jdoc
javadoc comments for this JFieldVar
|
private JDefinedClass |
owner |
Constructor and Description |
---|
JFieldVar(JDefinedClass owner,
JMods mods,
JType type,
java.lang.String name,
JExpression init)
JFieldVar constructor
|
Modifier and Type | Method and Description |
---|---|
void |
declare(JFormatter f) |
JDocComment |
javadoc()
Creates, if necessary, and returns the class javadoc for this
JDefinedClass
|
void |
name(java.lang.String name)
Changes the name of this variable.
|
annotate, annotate, annotate2, annotations, assign, assignPlus, bind, generate, init, isAnnotated, mods, name, type, type
_instanceof, band, bor, cand, complement, component, cor, decr, div, eq, gt, gte, incr, invoke, invoke, lt, lte, minus, minus, mod, mul, ne, not, plus, ref, ref, shl, shr, shrz, xor
private JDocComment jdoc
private final JDefinedClass owner
JFieldVar(JDefinedClass owner, JMods mods, JType type, java.lang.String name, JExpression init)
type
- Datatype of this variablename
- Name of this variableinit
- Value to initialize this variable topublic void name(java.lang.String name)
JVar
public JDocComment javadoc()
javadoc
in interface JDocCommentable
public void declare(JFormatter f)
declare
in interface JDeclaration
declare
in class JVar