org.outerj.expression
Class AbstractComparisonExpression

java.lang.Object
  extended byorg.outerj.expression.AbstractExpression
      extended byorg.outerj.expression.AbstractComparisonExpression
All Implemented Interfaces:
Expression
Direct Known Subclasses:
EqualsFunction, GreaterThanFunction, GreaterThanOrEqualsFunction, LessThanFunction, LessThanOrEqualsFunction, NotEqualsFunction

public abstract class AbstractComparisonExpression
extends AbstractExpression


Field Summary
 
Fields inherited from class org.outerj.expression.AbstractExpression
arguments, column, line
 
Constructor Summary
AbstractComparisonExpression()
           
 
Method Summary
 void check()
          Check if the expression's structure is OK.
 java.lang.Class getResultType()
          Returns the class of the the type of object that this expression will return.
 
Methods inherited from class org.outerj.expression.AbstractExpression
addArgument, addArgument, checkArgument, checkArguments, checkArgumentsOfSameType, checkNoArguments, getColumn, getLine, setPosition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.outerj.expression.Expression
evaluate, getDescription
 

Constructor Detail

AbstractComparisonExpression

public AbstractComparisonExpression()
Method Detail

check

public void check()
           throws ExpressionException
Description copied from interface: Expression
Check if the expression's structure is OK. If everything is ok, this method should just return.

Specified by:
check in interface Expression
Overrides:
check in class AbstractExpression
Throws:
ExpressionException

getResultType

public java.lang.Class getResultType()
Description copied from interface: Expression
Returns the class of the the type of object that this expression will return. This allows to check the correctness of functions at compile-time. If unknown, this may return null.