public class JFieldVar extends JVar implements JDocCommentable
JDocComment associated with it| Modifier 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, xorprivate 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)
JVarpublic JDocComment javadoc()
javadoc in interface JDocCommentablepublic void declare(JFormatter f)
declare in interface JDeclarationdeclare in class JVar