|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for all left-value expression.
Method Summary | |
void |
genEndStoreCode(CodeSequence code,
boolean discardValue)
Generates a sequence of bytecodes that must be generated after the right-side expression, to complete the store operation that stores the right side of the assignment expression in this lvalue. |
void |
genStartStoreCode(CodeSequence code)
Generates a sequence of bytecodes that must be generated before the right-side expression, to store the right side of the assignment expression in this lvalue. |
void |
initialize(CBodyContext ctxt)
Initialize this object. |
boolean |
isInitialized(CExpressionContext context)
Returns true if this expression is a variable that is already
initialized. |
boolean |
isLValue(CExpressionContext context)
Returns true if this expression is an LValue at call time. |
Method Detail |
public boolean isLValue(CExpressionContext context)
true
if this expression is an LValue at call time.true
if this expression is an LValue at call time.
Note: a final variable is a lvalue until it is initialized.public void initialize(CBodyContext ctxt) throws UnpositionedError
UnpositionedError
- An error if this object can't actually be assigned. This may happen
with final variables.public boolean isInitialized(CExpressionContext context)
true
if this expression is a variable that is already
initialized.true
if this expression is a variable that is already
initialized.public void genStartStoreCode(CodeSequence code)
code
- The code listpublic void genEndStoreCode(CodeSequence code, boolean discardValue)
discardValue
- Whether the value of the assignment expression is discarded. (The value
of an assignment expression is the value that has been stored in the
lvalue.)code
- The code list
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |