Venice 0.7beta

org.mov.parser.expression
Class UnaryExpression

java.lang.Object
  extended by org.mov.parser.expression.AbstractExpression
      extended by org.mov.parser.expression.UnaryExpression
All Implemented Interfaces:
java.lang.Cloneable, Expression
Direct Known Subclasses:
AbsExpression, CosineExpression, DefineVariableExpression, ExponentialExpression, LogarithmExpression, NotExpression, SetVariableExpression, SineExpression, SqrtExpression

public abstract class UnaryExpression
extends AbstractExpression

Abstract base class for all expressions requiring a single argument.


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
UnaryExpression(Expression sub)
          Create a new unary expression with the given argument.
 
Method Summary
 int getChildCount()
          Return the number of children required in a unary 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

UnaryExpression

public UnaryExpression(Expression sub)
Create a new unary expression with the given argument.

Parameters:
sub - the sub argument
Method Detail

getChildCount

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

Returns:
1

Venice 0.7beta