|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectASTNode
StmtNode
AssignStmtNode
public class AssignStmtNode
An AST node representing an assignment statement "var := expr;" or "var(subscript) := expr;".
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ASTNode |
|---|
ASTNode.DataType |
| Constructor Summary | |
|---|---|
AssignStmtNode(ExprNode dest,
ExprNode src)
Creates a new AssignStmtNode. |
|
| Method Summary | |
|---|---|
void |
unparse(java.io.PrintWriter p,
int level)
Prints a source representation of the tree rooted at this node on output stream p. |
| Methods inherited from class ASTNode |
|---|
indent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AssignStmtNode(ExprNode dest,
ExprNode src)
dest - the left-hand side of the assignment (SubscriptExprNode or
IdNode).src - the right-hand side of the assignment.| Method Detail |
|---|
public void unparse(java.io.PrintWriter p,
int level)
unparse in class ASTNodep - the place to display the output.level - the number of levels of indentation to use if the output
requires more than one line.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||