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, 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(Expression left, Expression right)
          Ctor.
LikeExpression(Expression left, Expression right, Expression escape)
          Ctor.
 
Method Summary
 void toEPL(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
 
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(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
Method Detail

toEPL

public void toEPL(StringWriter writer)
Description copied from interface: Expression
Renders the expressions and all it's child expression, in full tree depth, as a string in language syntax.

Parameters:
writer - is the output to use

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com