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
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ExpressionStatement
public ExpressionStatement(Expression expr)
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)