org.araneaframework.backend.list.memorybased.compexpr
Class MultiComparatorExpression

java.lang.Object
  extended byorg.araneaframework.backend.list.memorybased.compexpr.MultiComparatorExpression
All Implemented Interfaces:
ComparatorExpression, CompositeComparatorExpression, Serializable

public class MultiComparatorExpression
extends Object
implements CompositeComparatorExpression

See Also:
Serialized Form

Field Summary
protected  List children
           
 
Constructor Summary
MultiComparatorExpression()
           
 
Method Summary
 ComparatorExpression add(ComparatorExpression expression)
           
 int compare(VariableResolver resolver1, VariableResolver resolver2)
          Returns a negative integer, zero, or a positive integer as the first Variable is less than, equal to, or greater than the second.
 ComparatorExpression[] getChildren()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

children

protected List children
Constructor Detail

MultiComparatorExpression

public MultiComparatorExpression()
Method Detail

add

public ComparatorExpression add(ComparatorExpression expression)

getChildren

public ComparatorExpression[] getChildren()
Specified by:
getChildren in interface CompositeComparatorExpression

compare

public int compare(VariableResolver resolver1,
                   VariableResolver resolver2)
            throws ExpressionEvaluationException
Description copied from interface: ComparatorExpression
Returns a negative integer, zero, or a positive integer as the first Variable is less than, equal to, or greater than the second.

Specified by:
compare in interface ComparatorExpression
Parameters:
resolver1 - Resolver that is used to evalute the first Variable.
resolver2 - Resolver that is used to evalute the second Variable.
Returns:
a negative integer, zero, or a positive integer as the first Variable is less than, equal to, or greater than the second.
Throws:
ExpressionEvaluationException - when the comparation fails.