|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.codemodel.JExpressionImpl
com.sun.codemodel.JVar
public class JVar
Variables and fields.
Method Summary | |
---|---|
JExpression |
assign(JExpression rhs)
|
JExpression |
assignPlus(JExpression rhs)
|
void |
bind(JFormatter f)
|
void |
declare(JFormatter f)
|
void |
generate(JFormatter f)
|
JVar |
init(JExpression init)
Initialize this variable |
java.lang.String |
name()
Get the name of this variable |
JType |
type()
Return the type of this variable. |
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 |
---|
public JVar init(JExpression init)
init
- JExpression to be used to initialize this fieldpublic java.lang.String name()
public JType type()
public void bind(JFormatter f)
public void declare(JFormatter f)
declare
in interface JDeclaration
public void generate(JFormatter f)
public JExpression assign(JExpression rhs)
assign
in interface JAssignmentTarget
public JExpression assignPlus(JExpression rhs)
assignPlus
in interface JAssignmentTarget
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |