com.espertech.esper.client.soda
Class LikeExpression

java.lang.Object
  extended by com.espertech.esper.client.soda.ExpressionBase
      extended by com.espertech.esper.client.soda.LikeExpression
All Implemented Interfaces:
Expression, java.io.Serializable

public class LikeExpression
extends ExpressionBase

SQL-Like expression for matching '%' and '_' wildcard strings following SQL standards.

See Also:
Serialized Form

Constructor Summary
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.
 
Method Summary
 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(java.io.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.client.soda.ExpressionBase
addChild, getChildren, getTreeObjectName, renderAggregation, setChildren, setTreeObjectName, toEPL, toPrecedenceFreeEPL, toPrecedenceFreeEPL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LikeExpression

public LikeExpression()
Ctor - for use to create an expression tree, without child expression.

Use add methods to add child expressions to acts upon.


LikeExpression

public LikeExpression(boolean isNot)
Ctor - for use to create an expression tree, without child expression.

Use add methods to add child expressions to acts upon.

Parameters:
isNot - if the like-expression is negated

LikeExpression

public LikeExpression(Expression left,
                      Expression right)
Ctor.

Parameters:
left - provides the value to match
right - provides the like-expression to match against

LikeExpression

public LikeExpression(Expression left,
                      Expression right,
                      Expression escape)
Ctor.

Parameters:
left - provides the value to match
right - provides the like-expression to match against
escape - is the expression providing the string escape character

LikeExpression

public LikeExpression(Expression left,
                      Expression right,
                      boolean isNot)
Ctor.

Parameters:
left - provides the value to match
right - provides the like-expression to match against
isNot - if the like-expression is negated

LikeExpression

public LikeExpression(Expression left,
                      Expression right,
                      Expression escape,
                      boolean isNot)
Ctor.

Parameters:
left - provides the value to match
right - provides the like-expression to match against
escape - is the expression providing the string escape character
isNot - if the like-expression is negated
Method Detail

getPrecedence

public ExpressionPrecedenceEnum getPrecedence()
Description copied from interface: Expression
Returns precedence.

Returns:
precedence

toPrecedenceFreeEPL

public void toPrecedenceFreeEPL(java.io.StringWriter writer)
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 class ExpressionBase
Parameters:
writer - is the output to use

isNot

public boolean isNot()
Returns true if this is a "not like", or false if just a like

Returns:
indicator whether negated or not

setNot

public void setNot(boolean not)
Set to true if this is a "not like", or false if just a like

Parameters:
not - indicator whether negated or not

getNot

public boolean getNot()
Returns true if this is a "not like", or false if just a like

Returns:
indicator whether negated or not

© 2006-2016 EsperTech Inc.
All rights reserved.
Visit us at espertech.com