org.araneaframework.backend.list.memorybased.expression.compare
Class LikeExpression
java.lang.Object
org.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
expr
protected Expression expr
mask
protected Value mask
ignoreCase
protected boolean ignoreCase
configuration
protected LikeConfiguration configuration
LikeExpression
public LikeExpression(Expression expr,
Value mask,
boolean ignoreCase,
LikeConfiguration configuration)
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