Class JFieldVar
java.lang.Object
com.sun.codemodel.JExpressionImpl
com.sun.codemodel.JVar
com.sun.codemodel.JFieldVar
- All Implemented Interfaces:
JAnnotatable, JAssignmentTarget, JDeclaration, JDocCommentable, JExpression, JGenerable
A field that can have a
JDocComment associated with it-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JDocCommentjavadoc comments for this JFieldVarprivate final JDefinedClass -
Constructor Summary
ConstructorsConstructorDescriptionJFieldVar(JDefinedClass owner, JMods mods, JType type, String name, JExpression init) JFieldVar constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidjavadoc()Creates, if necessary, and returns the class javadoc for this JDefinedClassvoidChanges the name of this variable.Methods inherited from class JVar
annotate, annotate, annotate2, annotations, assign, assignPlus, bind, generate, init, isAnnotated, mods, name, type, typeMethods inherited from class 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
-
Field Details
-
jdoc
javadoc comments for this JFieldVar -
owner
-
-
Constructor Details
-
JFieldVar
JFieldVar(JDefinedClass owner, JMods mods, JType type, String name, JExpression init) JFieldVar constructor- Parameters:
type- Datatype of this variablename- Name of this variableinit- Value to initialize this variable to
-
-
Method Details
-
name
-
javadoc
Creates, if necessary, and returns the class javadoc for this JDefinedClass- Specified by:
javadocin interfaceJDocCommentable- Returns:
- JDocComment containing javadocs for this class
-
declare
- Specified by:
declarein interfaceJDeclaration- Overrides:
declarein classJVar
-