|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Expression that may be an l-value.
Suppose that an expression is VariableExpr.
If the expression represents an int variable,
it is an l-value. However, if it represents an array name,
then it is not an l-value. For example,
int a[10]; a = ... ; // a is not an l-value. a[0] = ... ; // a[0] is an l-value.
Even if the class of an expression implements
LvalueExpr, that expression may not be an l-value.
isLvalue() returns true only if that expression
is really an l-value.
| Method Summary | |
boolean |
hasAddress()
Returns true if the expression can be an operand of '&'. |
boolean |
isLvalue()
Returns true if the expression is really an l-value. |
| Methods inherited from interface coins.ast.Expr |
getType |
| Method Detail |
public boolean isLvalue()
public boolean hasAddress()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||