nz.org.venice.parser.expression
Class QuaternaryExpression
java.lang.Object
nz.org.venice.parser.expression.AbstractExpression
nz.org.venice.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.
| 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 |
|
Method Summary |
int |
getChildCount()
Return the number of children required in a quaternary expression.
|
| Methods inherited from class nz.org.venice.parser.expression.AbstractExpression |
clone, equals, getChild, getId, getIndex, getNumberFormat, getParent, getParseMetadata, hashCode, isRoot, iterator, parseDouble, parseInt, printParents, setChild, setChildMutableVersion, setParent, setParseMetadata, simplify, simplifyMutableVersion, size, size, toString, validTree, valueOfDouble, valueOfInt |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
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 argumentarg2 - the second argumentarg3 - the third argumentarg4 - the fourth argument
getChildCount
public int getChildCount()
- Return the number of children required in a quaternary expression.
This will always evaluate to
4.
- Returns:
4