org.teatrove.tea.parsetree
Class SpreadExpression

java.lang.Object
  extended by org.teatrove.tea.parsetree.Node
      extended by org.teatrove.tea.parsetree.Expression
          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class org.teatrove.tea.parsetree.Expression
Expression.Conversion
 
Constructor Summary
SpreadExpression(SourceInfo info, Expression expr, Expression operation)
           
 
Method Summary
 Object accept(NodeVisitor visitor)
          Every subclass of Node must override this method with the following: return visitor.visit(this).
 Object clone()
          Returns a clone of this Node and all its children.
 Expression getExpression()
           
 Expression getOperation()
           
 boolean isExceptionPossible()
          Returns true if an exception can be thrown while executing this Expression.
 void setExpression(Expression expr)
           
 void setOperation(Expression operation)
           
 
Methods inherited from class org.teatrove.tea.parsetree.Expression
convertTo, convertTo, forceConversion, getConversionChain, getInitialType, getType, getValue, isValueKnown, setInitialType, setType
 
Methods inherited from class org.teatrove.tea.parsetree.Node
getSourceInfo, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpreadExpression

public SpreadExpression(SourceInfo info,
                        Expression expr,
                        Expression operation)
Method Detail

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.