org.teatrove.tea.parsetree
Class SpreadExpression
java.lang.Object
org.teatrove.tea.parsetree.Node
org.teatrove.tea.parsetree.Expression
org.teatrove.tea.parsetree.SpreadExpression
- All Implemented Interfaces:
- Serializable, Cloneable
public class SpreadExpression
- extends Expression
Expression that handles spread operators which is responsiblef or taking an
expression as either a collection or array and generating a new collection
or array by invoking another expression against each item in the collection.
- See Also:
- Serialized Form
SpreadExpression
public SpreadExpression(SourceInfo info,
Expression expr,
Expression operation)
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 Expression
- 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 Expression
isExceptionPossible
public boolean isExceptionPossible()
- Description copied from class:
Expression
- Returns true if an exception can be thrown while executing this
Expression. By default, returns true only if a type conversion could
cause an exception.
- Overrides:
isExceptionPossible in class Expression
getExpression
public Expression getExpression()
getOperation
public Expression getOperation()
setExpression
public void setExpression(Expression expr)
setOperation
public void setOperation(Expression operation)
Copyright © 1997-2012 TeaTrove.org. All Rights Reserved.