|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This class represents the context for an expression during checking passes (checkInterface, checkInitializers, typecheck).
CContextType| Method Summary | |
CExpressionContextType |
createExpressionContext_()
|
boolean |
discardValue()
|
boolean |
isIncDec()
|
boolean |
isLeftSide()
|
void |
setArithmeticMode(byte arithmeticMode)
|
void |
setDiscardValue(boolean discardValue)
set this context as a discarded value so result is ignored |
void |
setIncDec(boolean incDec)
Set this context as an increment or decrement expression, so we can generate appropriate getters and setters if necessary (and also generate proper code in the future). |
void |
setLeftSide(boolean leftSide)
Set this context as a left side in an assignment, so access to vars may be uninitialized |
| Method Detail |
public void setArithmeticMode(byte arithmeticMode)
public CExpressionContextType createExpressionContext_()
public void setIncDec(boolean incDec)
incDec - public boolean isIncDec()
public void setLeftSide(boolean leftSide)
leftSide - set the side of current code flowpublic boolean isLeftSide()
public void setDiscardValue(boolean discardValue)
discardValue - is the value of this expression in
this context discarded?public boolean discardValue()
|
mjc | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||