AST
node type ReturnStmt

General Info

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

Description

Source
Declared in spec/picojava-method.ast at line 1

Member Filters

API level:

Aspect:

Constructors

public ReturnStmt()
public ReturnStmt(Exp p0)

Attributes

syn boolean endsWithReturn()
Overrides:endsWithReturn in class BlockStmt
Source
Declared in spec/ErrorCheck.jrag at line 13
Aspect
ErrorCheck

Methods

public ReturnStmt clone()
                 throws java.lang.CloneNotSupportedException
Overrides:clone in class Stmt
Throws:
java.lang.CloneNotSupportedException
public ReturnStmt 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 prettyPrint(java.lang.StringBuilder sb,
                        int t)
Source
Declared in spec/PrettyPrint.jadd at line 16
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 setExp(Exp node)
Replaces the Exp child.
Parameters:
node - The new node to replace the Exp child.
public Exp getExp()
Retrieves the Exp child.
Returns:
The current node used as the Exp child.
Retrieves the Exp child.

This method does not invoke AST transformations.

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

Fields

Inherited Members