|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcoins.ast.ASTree
coins.ast.expr.VariableExpr
Variable.
| Constructor Summary | |
VariableExpr(Declarator d)
|
|
| Method Summary | |
void |
accept(Visitor v)
Is a method for the visitor pattern. |
Declarator |
getDeclarator()
Returns the declarator of the variable. |
ASTree |
getLeft()
Returns null. |
ASTree |
getRight()
Returns null. |
byte[] |
getType()
Returns the type of the resulting value of evaluating the expression. |
boolean |
hasAddress()
Returns true if the expression can be an operand of '&'. |
boolean |
isLvalue()
Returns true if the expression is really an l-value. |
void |
setLeft(ASTree _left)
|
void |
setRight(ASTree _right)
|
java.lang.String |
toString()
|
| Methods inherited from class coins.ast.ASTree |
getTag, putSeparator, rightToString, toString1 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public VariableExpr(Declarator d)
| Method Detail |
public boolean isLvalue()
LvalueExpr
isLvalue in interface LvalueExprpublic boolean hasAddress()
LvalueExpr
hasAddress in interface LvalueExprpublic void accept(Visitor v)
ASTreeatXXX() on the given visitor, where
XXX is the class name of the node object.
accept in class ASTreepublic ASTree getLeft()
getLeft in class ASTreepublic ASTree getRight()
getRight in class ASTreepublic void setLeft(ASTree _left)
setLeft in class ASTreepublic void setRight(ASTree _right)
setRight in class ASTreepublic byte[] getType()
Expr
getType in interface Exprpublic Declarator getDeclarator()
public java.lang.String toString()
toString in class ASTree
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||