net.esper.client.soda
Class RelationalOpExpression

java.lang.Object
  extended by net.esper.client.soda.ExpressionBase
      extended by net.esper.client.soda.RelationalOpExpression
All Implemented Interfaces:
Serializable, Expression

public class RelationalOpExpression
extends ExpressionBase

Comparison using one of the relational operators (=, !=, <, <=, >, >=).

See Also:
Serialized Form

Constructor Summary
RelationalOpExpression(Expression left, String operator, Expression right)
          Ctor.
RelationalOpExpression(String operator)
          Ctor.
 
Method Summary
 String getOperator()
          Returns the operator to use.
 void setOperator(String operator)
          Sets the operator to use.
 void toEQL(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 net.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

RelationalOpExpression

public RelationalOpExpression(String operator)
Ctor.

Parameters:
operator - is the relational operator.

RelationalOpExpression

public RelationalOpExpression(Expression left,
                              String operator,
                              Expression right)
Ctor.

Parameters:
left - provides a value to compare against
operator - is the operator to use
right - provides a value to compare against
Method Detail

getOperator

public String getOperator()
Returns the operator to use.

Returns:
operator.

setOperator

public void setOperator(String operator)
Sets the operator to use.

Parameters:
operator - to use

toEQL

public void toEQL(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