Class ContainsExpression
- java.lang.Object
-
- org.vedantatree.expressionoasis.expressions.BinaryOperatorExpression
-
- org.vedantatree.expressionoasis.expressions.string.ContainsExpression
-
- All Implemented Interfaces:
Expression
public class ContainsExpression extends BinaryOperatorExpression
Expression to evaluate the String.contains type expression. Expression format > userName contains 'Girish'. 'contains' expression has been added to Grammar.xml- Since:
- 3.1
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.vedantatree.expressionoasis.expressions.BinaryOperatorExpression
BinaryOperatorExpression.TypePair
-
-
Field Summary
-
Fields inherited from class org.vedantatree.expressionoasis.expressions.BinaryOperatorExpression
leftOperandExpression, rightOperandExpression
-
-
Constructor Summary
Constructors Constructor Description ContainsExpression()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueObject
getValue()
Executes and returns the value of this expression.-
Methods inherited from class org.vedantatree.expressionoasis.expressions.BinaryOperatorExpression
accept, addTypePair, createTypePair, getLeftOperandExpression, getReturnType, getRightOperandExpression, initialize, toString, uninitialize, validate
-
-
-
-
Method Detail
-
getValue
public ValueObject getValue() throws ExpressionEngineException
Description copied from interface:Expression
Executes and returns the value of this expression. If expression is not at node level, it will further evaluate its related expression which may represents operands or operators and return the final outcome.- Specified by:
getValue
in interfaceExpression
- Overrides:
getValue
in classBinaryOperatorExpression
- Returns:
- the value of expression (after expression evaluation)
- Throws:
ExpressionEngineException
- if there is any problem during execution
-
-