AST
node type AssignStmt

General Info

Production
AssignStmt : Stmt ::= Variable:Access Value:Exp;
Type Hierarchy:
java.lang.Object
  extended by AST.ASTNode<ASTNode>
      extended by AST.BlockStmt
          extended by AST.Stmt
              extended by AST.AssignStmt
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<ASTNode>

Description

Source
Declared in spec/picojava.ast at line 10

Member Filters

API level:

Aspect:

Constructors

public AssignStmt()
public AssignStmt(Access p0,
                  Exp p1)

Methods

public AssignStmt clone()
                 throws java.lang.CloneNotSupportedException
Overrides:clone in class Stmt
Throws:
java.lang.CloneNotSupportedException
public AssignStmt copy()
Overrides:copy in class ASTNode<ASTNode>
Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.
Overrides:fullCopy in class ASTNode<ASTNode>
Returns:
dangling copy of the subtree at this node
public void collectErrors(java.util.Collection c)
Overrides:collectErrors in class ASTNode<ASTNode>
Source
Declared in spec/ErrorCheck.jadd at line 24
Aspect
ErrorCheck
public void prettyPrint(java.lang.StringBuilder sb,
                        int t)
Source
Declared in spec/PrettyPrint.jadd at line 52
Aspect
PrettyPrint
public void init$Children()
Initializes the child array to the correct size. Initializes List and Opt nta children.
Overrides:init$Children in class Stmt
protected int numChildren()
Overrides:numChildren in class Stmt
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class Stmt
public void flushCache()
Overrides:flushCache in class Stmt
public void flushCollectionCache()
Overrides:flushCollectionCache in class Stmt
public void setVariable(Access node)
Replaces the Variable child.
Parameters:
node - The new node to replace the Variable child.
Retrieves the Variable child.
Returns:
The current node used as the Variable child.
Retrieves the Variable child.

This method does not invoke AST transformations.

Returns:
The current node used as the Variable child.
public void setValue(Exp node)
Replaces the Value child.
Parameters:
node - The new node to replace the Value child.
public Exp getValue()
Retrieves the Value child.
Returns:
The current node used as the Value child.
Retrieves the Value child.

This method does not invoke AST transformations.

Returns:
The current node used as the Value child.
Overrides:rewriteTo in class Stmt

Inherited Members