Package org.jboss.jdeparser
Class JFieldVar
java.lang.Object
org.jboss.jdeparser.JExpressionImpl
org.jboss.jdeparser.JVar
org.jboss.jdeparser.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 org.jboss.jdeparser.JVar
annotate, annotate, annotate2, annotations, assign, assignPlus, bind, generate, init, isAnnotated, mods, name, type, typeMethods inherited from class org.jboss.jdeparser.JExpressionImpl
_instanceof, band, bor, cand, complement, component, cond, 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:JVarChanges the name of this variable. -
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
-