Venice 0.7beta

org.mov.parser.expression
Class QuaternaryExpression

java.lang.Object
  extended by org.mov.parser.expression.AbstractExpression
      extended by org.mov.parser.expression.QuaternaryExpression
All Implemented Interfaces:
java.lang.Cloneable, Expression
Direct Known Subclasses:
CorrExpression, EMAExpression, ForExpression

public abstract class QuaternaryExpression
extends AbstractExpression

Abstract base class for all expressions requiring four arguments.


Field Summary
 
Fields inherited from interface org.mov.parser.Expression
BOOLEAN_TYPE, FALSE, FLOAT_QUOTE_TYPE, FLOAT_TYPE, INTEGER_QUOTE_TYPE, INTEGER_TYPE, STRING_TYPE, TRUE, TRUE_LEVEL
 
Constructor Summary
QuaternaryExpression(Expression arg1, Expression arg2, Expression arg3, Expression arg4)
          Create a new quaternary expression with the given four arguments.
 
Method Summary
 int getChildCount()
          Return the number of children required in a quaternary expression.
 
Methods inherited from class org.mov.parser.expression.AbstractExpression
clone, equals, getChild, getIndex, getNumberFormat, getParent, hashCode, isRoot, iterator, parseDouble, parseInt, setChild, setParent, simplify, size, size, valueOfDouble, valueOfInt
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mov.parser.Expression
checkType, evaluate, getType, toString
 

Constructor Detail

QuaternaryExpression

public QuaternaryExpression(Expression arg1,
                            Expression arg2,
                            Expression arg3,
                            Expression arg4)
Create a new quaternary expression with the given four arguments.

Parameters:
arg1 - the first argument
arg2 - the second argument
arg3 - the third argument
arg4 - the fourth argument
Method Detail

getChildCount

public int getChildCount()
Return the number of children required in a quaternary expression. This will always evaluate to 4.

Returns:
4

Venice 0.7beta