Top Description Fields Constructors Methods
com.sun.codemodel

public Class JFieldVar

extends JVar
implements JDocCommentable
Class Inheritance
All Implemented Interfaces
com.sun.codemodel.JDocCommentable

A field that can have a JDocComment associated with it

Field Summary

Modifier and TypeField and Description
private JDocComment
jdoc

javadoc comments for this JFieldVar

private final JDefinedClass

Constructor Summary

AccessConstructor and Description
pack-priv
JFieldVar(JDefinedClass owner, JMods mods, JType
Datatype of this variable
type
,
String
Name of this variable
name
,
JExpression
Value to initialize this variable to
init
)

JFieldVar constructor

Method Summary

Modifier and TypeMethod and Description
public void
public JDocComment

Returns:

JDocComment containing javadocs for this class
javadoc
()

Implements com.sun.codemodel.JDocCommentable.javadoc.

Creates, if necessary, and returns the class javadoc for this JDefinedClass

public void
name(String name)

Overrides com.sun.codemodel.JVar.name.

Changes the name of this variable.

Inherited from com.sun.codemodel.JVar:
annotateannotateannotateannotate2annotationsassignassignPlusbindgenerateinitisAnnotatedmodsnameremoveAnnotationtypetype

Field Detail

jdocback to summary
private JDocComment jdoc

javadoc comments for this JFieldVar

ownerback to summary
private final JDefinedClass owner

Constructor Detail

JFieldVarback to summary
pack-priv JFieldVar(JDefinedClass owner, JMods mods, JType type, String name, JExpression init)

JFieldVar constructor

Parameters
type:JType

Datatype of this variable

name:String

Name of this variable

init:JExpression

Value to initialize this variable to

Method Detail

declareback to summary
public void declare(JFormatter f)

Overrides com.sun.codemodel.JVar.declare.

Implements com.sun.codemodel.JDeclaration.declare.

Annotations
@Override
javadocback to summary
public JDocComment javadoc()

Implements com.sun.codemodel.JDocCommentable.javadoc.

Creates, if necessary, and returns the class javadoc for this JDefinedClass

Returns:JDocComment

JDocComment containing javadocs for this class

Annotations
@Override
nameback to summary
public void name(String name)

Overrides com.sun.codemodel.JVar.name.

Doc from com.sun.codemodel.JVar.name.

Changes the name of this variable.

Annotations
@Override