- java.lang.Object
-
- com.sun.codemodel.JExpressionImpl
-
- com.sun.codemodel.JVar
-
- com.sun.codemodel.JFieldVar
-
- All Implemented Interfaces:
JAnnotatable,JAssignmentTarget,JDeclaration,JDocCommentable,JExpression,JGenerable
public class JFieldVar extends JVar implements JDocCommentable
A field that can have aJDocCommentassociated with it
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeclare(JFormatter f)JDocCommentjavadoc()Creates, if necessary, and returns the class javadoc for this JDefinedClassvoidname(java.lang.String name)Changes the name of this variable.-
Methods inherited from class com.sun.codemodel.JVar
annotate, annotate, annotate2, annotations, assign, assignPlus, bind, generate, init, isAnnotated, mods, name, removeAnnotation, type, type
-
Methods inherited from class com.sun.codemodel.JExpressionImpl
_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
-
-
-
-
Method Detail
-
name
public void name(java.lang.String name)
Description copied from class:JVarChanges the name of this variable.
-
javadoc
public JDocComment javadoc()
Creates, if necessary, and returns the class javadoc for this JDefinedClass- Specified by:
javadocin interfaceJDocCommentable- Returns:
- JDocComment containing javadocs for this class
-
declare
public void declare(JFormatter f)
- Specified by:
declarein interfaceJDeclaration- Overrides:
declarein classJVar
-
-