com.sun.codemodel
Class JFieldVar

java.lang.Object
  extended by com.sun.codemodel.JExpressionImpl
      extended by com.sun.codemodel.JVar
          extended by com.sun.codemodel.JFieldVar
All Implemented Interfaces:
JAnnotatable, JAssignmentTarget, JDeclaration, JExpression

public class JFieldVar
extends JVar

A field that can have a JDocComment associated with it


Method Summary
 void declare(JFormatter f)
           
 JDocComment javadoc()
          Creates, if necessary, and returns the class javadoc for this JDefinedClass
 void name(java.lang.String name)
          Changes the name of this variable.
 
Methods inherited from class com.sun.codemodel.JVar
annotate, annotate, annotate2, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.codemodel.JExpression
_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: JVar
Changes the name of this variable.

Overrides:
name in class JVar

javadoc

public JDocComment javadoc()
Creates, if necessary, and returns the class javadoc for this JDefinedClass

Returns:
JDocComment containing javadocs for this class

declare

public void declare(JFormatter f)
Specified by:
declare in interface JDeclaration
Overrides:
declare in class JVar


Copyright © 2005-2010 Sun Microsystems. All Rights Reserved.