org.teatrove.tea.parsetree
Class ExpressionStatement
java.lang.Object
org.teatrove.tea.parsetree.Node
org.teatrove.tea.parsetree.Statement
org.teatrove.tea.parsetree.ExpressionStatement
- All Implemented Interfaces:
- Serializable, Cloneable
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.
- Author:
- Brian S O'Neill
- See Also:
- Serialized Form
ExpressionStatement
public ExpressionStatement(Expression expr)
accept
public 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
- Parameters:
visitor - A visitor of this Node
- Returns:
- Node The Node returned by the visitor
- See Also:
NodeVisitor
clone
public 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 Method getReceiverMethod()
setExpression
public void setExpression(Expression expr)
setReceiverMethod
public void setReceiverMethod(Method m)
Copyright © 1997-2012 TeaTrove.org. All Rights Reserved.