Venice 0.751beta

nz.org.venice.parser.expression
Class IncludeExpression

java.lang.Object
  extended bynz.org.venice.parser.expression.AbstractExpression
      extended bynz.org.venice.parser.expression.ClauseExpression
          extended bynz.org.venice.parser.expression.IncludeExpression
All Implemented Interfaces:
java.lang.Cloneable, Expression

public class IncludeExpression
extends ClauseExpression

A clause is an ordered list of sub-expressions. Each sub-expression is executed serially. The value and type of the clause is the value and type of the last sub-expression in the clause.

Author:
Mark Hummel

Field Summary
 
Fields inherited from interface nz.org.venice.parser.Expression
BOOLEAN_TYPE, FALSE, FLOAT_QUOTE_TYPE, FLOAT_TYPE, INTEGER_QUOTE_TYPE, INTEGER_SHORT_TYPE, INTEGER_TYPE, NUMERIC_TYPE, STRING_TYPE, TRUE, TRUE_LEVEL, UNDEFINED_TYPE
 
Constructor Summary
IncludeExpression(java.util.List children)
          Create a new clause expression from the given list of expressions.
 
Method Summary
 double evaluate(Variables variables, QuoteBundle quoteBundle, Symbol symbol, int day)
          Evaluates the given expression and returns the result.
 
Methods inherited from class nz.org.venice.parser.expression.ClauseExpression
checkType, clone, getChildCount, getType, toString, toString
 
Methods inherited from class nz.org.venice.parser.expression.AbstractExpression
equals, getChild, getId, getIndex, getNumberFormat, getParent, getParseMetadata, hashCode, isRoot, iterator, parseDouble, parseInt, printParents, setChild, setChildMutableVersion, setParent, setParseMetadata, simplify, simplifyMutableVersion, size, size, validTree, valueOfDouble, valueOfInt
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IncludeExpression

public IncludeExpression(java.util.List children)
Create a new clause expression from the given list of expressions.

Parameters:
children - list of expressions.
Method Detail

evaluate

public double evaluate(Variables variables,
                       QuoteBundle quoteBundle,
                       Symbol symbol,
                       int day)
                throws EvaluationException
Description copied from interface: Expression
Evaluates the given expression and returns the result.

Specified by:
evaluate in interface Expression
Overrides:
evaluate in class ClauseExpression
Throws:
EvaluationException

Venice 0.751beta