public class LikeExpression extends ExpressionBase
Constructor and Description |
---|
LikeExpression()
Ctor - for use to create an expression tree, without child expression.
|
LikeExpression(boolean isNot)
Ctor - for use to create an expression tree, without child expression.
|
LikeExpression(Expression left,
Expression right)
Ctor.
|
LikeExpression(Expression left,
Expression right,
boolean isNot)
Ctor.
|
LikeExpression(Expression left,
Expression right,
Expression escape)
Ctor.
|
LikeExpression(Expression left,
Expression right,
Expression escape,
boolean isNot)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getNot()
Returns true if this is a "not like", or false if just a like
|
ExpressionPrecedenceEnum |
getPrecedence()
Returns precedence.
|
boolean |
isNot()
Returns true if this is a "not like", or false if just a like
|
void |
setNot(boolean not)
Set to true if this is a "not like", or false if just a like
|
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 LikeExpression()
Use add methods to add child expressions to acts upon.
public LikeExpression(boolean isNot)
Use add methods to add child expressions to acts upon.
isNot
- if the like-expression is negatedpublic LikeExpression(Expression left, Expression right)
left
- provides the value to matchright
- provides the like-expression to match againstpublic LikeExpression(Expression left, Expression right, Expression escape)
left
- provides the value to matchright
- provides the like-expression to match againstescape
- is the expression providing the string escape characterpublic LikeExpression(Expression left, Expression right, boolean isNot)
left
- provides the value to matchright
- provides the like-expression to match againstisNot
- if the like-expression is negatedpublic LikeExpression(Expression left, Expression right, Expression escape, boolean isNot)
left
- provides the value to matchright
- provides the like-expression to match againstescape
- is the expression providing the string escape characterisNot
- if the like-expression is negatedpublic ExpressionPrecedenceEnum getPrecedence()
Expression
public void toPrecedenceFreeEPL(StringWriter writer)
ExpressionBase
toPrecedenceFreeEPL
in class ExpressionBase
writer
- is the output to usepublic boolean isNot()
public void setNot(boolean not)
not
- indicator whether negated or notpublic boolean getNot()