public class InExpression extends ExpressionBase
Constructor and Description |
---|
InExpression()
Ctor.
|
InExpression(boolean isNotIn)
Ctor - for use to create an expression tree, without child expression.
|
InExpression(Expression value,
boolean isNotIn,
Expression[] parameters)
Ctor.
|
InExpression(Expression value,
boolean isNotIn,
Object... parameters)
Ctor - for use to create an expression tree, without child expression.
|
Modifier and Type | Method and Description |
---|---|
InExpression |
add(Expression expression)
Add an expression to include in the computation.
|
InExpression |
add(Object object)
Add a constant to include in the computation.
|
InExpression |
add(String propertyName)
Add a property to include in the computation.
|
boolean |
getNotIn()
Returns true for the not-in expression, or false for an in-expression.
|
ExpressionPrecedenceEnum |
getPrecedence()
Returns precedence.
|
boolean |
isNotIn()
Returns true for the not-in expression, or false for an in-expression.
|
void |
setNotIn(boolean notIn)
Set to true to indicate this is a not-in expression.
|
void |
toPrecedenceFreeEPL(StringWriter writer)
Renders the expressions and all it's child expression, in full tree depth, as a string in
language syntax.
|
addChild, getChildren, getTreeObjectName, renderAggregation, setChildren, setTreeObjectName, toEPL, toPrecedenceFreeEPL, toPrecedenceFreeEPL
public InExpression()
public InExpression(boolean isNotIn)
Use add methods to add child expressions to acts upon.
isNotIn
- true for the not-in expression, false for the in-expressionpublic InExpression(Expression value, boolean isNotIn, Object... parameters)
Use add methods to add child expressions to acts upon.
value
- an expression that provides the value to search for in the setisNotIn
- true for the not-in expression, false for the in-expressionparameters
- is a set of constants to match againstpublic InExpression(Expression value, boolean isNotIn, Expression[] parameters)
value
- expression to checkisNotIn
- indicator whether not-in (true) or in (false)parameters
- expression listpublic boolean isNotIn()
public boolean getNotIn()
public void setNotIn(boolean notIn)
notIn
- true for not-in, false for in-expressionpublic InExpression add(Object object)
object
- constant to addpublic InExpression add(Expression expression)
expression
- to addpublic InExpression add(String propertyName)
propertyName
- is the name of the propertypublic ExpressionPrecedenceEnum getPrecedence()
Expression
public void toPrecedenceFreeEPL(StringWriter writer)
ExpressionBase
toPrecedenceFreeEPL
in class ExpressionBase
writer
- is the output to use