com.go.tea.parsetree
Class ExpressionStatement

java.lang.Object
  |
  +--com.go.tea.parsetree.Node
        |
        +--com.go.tea.parsetree.Statement
              |
              +--com.go.tea.parsetree.ExpressionStatement
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class ExpressionStatement
extends Statement

An ExpressionStatement allows an Expression to be converted to a Statement. What happens to the value returned by the Expression is determined by a code generator.

Version:
17 , 9/07/00
Author:
Brian S O'Neill
See Also:
Serialized Form

Constructor Summary
ExpressionStatement(Expression expr)
           
 
Method Summary
 java.lang.Object accept(NodeVisitor visitor)
          Every subclass of Node must override this method with the following: return visitor.visit(this).
 java.lang.Object clone()
          Returns a clone of this Node and all its children.
 Expression getExpression()
           
 java.lang.reflect.Method getReceiverMethod()
           
 void setExpression(Expression expr)
           
 void setReceiverMethod(java.lang.reflect.Method m)
           
 
Methods inherited from class com.go.tea.parsetree.Statement
isBreak, isReturn
 
Methods inherited from class com.go.tea.parsetree.Node
getSourceInfo, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExpressionStatement

public ExpressionStatement(Expression expr)
Method Detail

accept

public java.lang.Object accept(NodeVisitor visitor)
Description copied from class: Node
Every subclass of Node must override this method with the following: return visitor.visit(this).
Overrides:
accept in class Statement
Following copied from class: com.go.tea.parsetree.Node
Parameters:
visitor - A visitor of this Node
Returns:
Node The Node returned by the visitor
See Also:
NodeVisitor

clone

public java.lang.Object clone()
Description copied from class: Node
Returns a clone of this Node and all its children. Immutable child objects are not necessarily cloned
Overrides:
clone in class Node

getExpression

public Expression getExpression()

getReceiverMethod

public java.lang.reflect.Method getReceiverMethod()

setExpression

public void setExpression(Expression expr)

setReceiverMethod

public void setReceiverMethod(java.lang.reflect.Method m)