coins.ast.expr
Interface LvalueExpr

All Superinterfaces:
Expr
All Known Implementing Classes:
ArrayExpr, CommaExpr, ConditionalExpr, DereferenceExpr, MemberExpr, StringLiteral, VariableExpr

public interface LvalueExpr
extends Expr

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,

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

isLvalue

public boolean isLvalue()
Returns true if the expression is really an l-value.


hasAddress

public boolean hasAddress()
Returns true if the expression can be an operand of '&'.