Class RegExpExpression
java.lang.Object
com.espertech.esper.common.client.soda.ExpressionBase
com.espertech.esper.common.client.soda.RegExpExpression
- All Implemented Interfaces:
Expression
,Serializable
Regular expression evaluates a "regexp" regular expression.
- See Also:
-
Constructor Summary
ConstructorDescriptionCtor - for use to create an expression tree, without child expression.RegExpExpression
(boolean isNot) Ctor - for use to create an expression tree, without child expression.RegExpExpression
(Expression left, Expression right) Ctor.RegExpExpression
(Expression left, Expression right, boolean isNot) Ctor.RegExpExpression
(Expression left, Expression right, Expression escape) Ctor.RegExpExpression
(Expression left, Expression right, Expression escape, boolean isNot) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionReturns precedence.boolean
isNot()
Returns true if negated.void
toPrecedenceFreeEPL
(StringWriter writer) Renders the expressions and all it's child expression, in full tree depth, as a string in language syntax.Methods inherited from class com.espertech.esper.common.client.soda.ExpressionBase
addChild, getChildren, getTreeObjectName, renderAggregation, setChildren, setTreeObjectName, toEPL, toPrecedenceFreeEPL, toPrecedenceFreeEPL
-
Constructor Details
-
RegExpExpression
public RegExpExpression(boolean isNot) Ctor - for use to create an expression tree, without child expression.- Parameters:
isNot
- true for negated regex
-
RegExpExpression
Ctor.- Parameters:
left
- provides values to match against regexp stringright
- provides the regexp stringisNot
- true for negated regex
-
RegExpExpression
Ctor.- Parameters:
left
- provides values to match against regexp stringright
- provides the regexp stringescape
- provides the escape characterisNot
- true for negated regex
-
RegExpExpression
public RegExpExpression()Ctor - for use to create an expression tree, without child expression. -
RegExpExpression
Ctor.- Parameters:
left
- provides values to match against regexp stringright
- provides the regexp string
-
RegExpExpression
Ctor.- Parameters:
left
- provides values to match against regexp stringright
- provides the regexp stringescape
- provides the escape character
-
-
Method Details
-
getPrecedence
Description copied from interface:Expression
Returns precedence.- Returns:
- precedence
-
toPrecedenceFreeEPL
Description copied from class:ExpressionBase
Renders the expressions and all it's child expression, in full tree depth, as a string in language syntax.- Specified by:
toPrecedenceFreeEPL
in classExpressionBase
- Parameters:
writer
- is the output to use
-
isNot
public boolean isNot()Returns true if negated.- Returns:
- indicator whether negated
-