org.araneaframework.backend.list.memorybased.expression.compare
Class LikeExpression

java.lang.Object
  extended byorg.araneaframework.backend.list.memorybased.expression.compare.LikeExpression
All Implemented Interfaces:
CompositeExpression, Expression, Serializable, StringExpression
Direct Known Subclasses:
EndsWithExpression, StartsWithExpression

public class LikeExpression
extends Object
implements CompositeExpression, StringExpression

See Also:
Serialized Form

Field Summary
protected  LikeConfiguration configuration
           
protected  Expression expr
           
protected  boolean ignoreCase
           
protected  Value mask
           
 
Constructor Summary
LikeExpression(Expression expr, Value mask, boolean ignoreCase, LikeConfiguration configuration)
           
 
Method Summary
 Object evaluate(VariableResolver resolver)
          Evaluates this Expression by returning its value.
 Expression[] getChildren()
           
 LikeConfiguration getConfiguration()
           
 boolean getIgnoreCase()
           
 Value getMask()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

expr

protected Expression expr

mask

protected Value mask

ignoreCase

protected boolean ignoreCase

configuration

protected LikeConfiguration configuration
Constructor Detail

LikeExpression

public LikeExpression(Expression expr,
                      Value mask,
                      boolean ignoreCase,
                      LikeConfiguration configuration)
Method Detail

getIgnoreCase

public boolean getIgnoreCase()
Specified by:
getIgnoreCase in interface StringExpression

getMask

public Value getMask()

getConfiguration

public LikeConfiguration getConfiguration()

evaluate

public Object evaluate(VariableResolver resolver)
                throws ExpressionEvaluationException
Description copied from interface: Expression
Evaluates this Expression by returning its value. The returned value may also be null.

Specified by:
evaluate in interface Expression
Parameters:
resolver - Resolver that is used to evalute Variables.
Returns:
the value of this Expression.
Throws:
ExpressionEvaluationException - when the evaluating fails.

getChildren

public Expression[] getChildren()
Specified by:
getChildren in interface CompositeExpression