Package com.sun.codemodel
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 JDocComment
javadoc 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 TypeMethodDescriptionvoid
javadoc()
Creates, if necessary, and returns the class javadoc for this JDefinedClassvoid
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, 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
-
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
Description copied from class:JVar
Changes the name of this variable. -
javadoc
Creates, if necessary, and returns the class javadoc for this JDefinedClass- Specified by:
javadoc
in interfaceJDocCommentable
- Returns:
- JDocComment containing javadocs for this class
-
declare
- Specified by:
declare
in interfaceJDeclaration
- Overrides:
declare
in classJVar
-