net.esper.client.soda
Class ConstantExpression

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

public class ConstantExpression
extends ExpressionBase

Constant value returns a fixed value for use in expressions.

See Also:
Serialized Form

Constructor Summary
ConstantExpression(Object constant)
          Ctor.
 
Method Summary
 Object getConstant()
          Returns the constant value that the expression represents.
 void setConstant(Object constant)
          Sets the constant value that the expression represents.
 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

ConstantExpression

public ConstantExpression(Object constant)
Ctor.

Parameters:
constant - is the constant value, or null to represent the null value
Method Detail

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

getConstant

public Object getConstant()
Returns the constant value that the expression represents.

Returns:
value of constant

setConstant

public void setConstant(Object constant)
Sets the constant value that the expression represents.

Parameters:
constant - is the value, or null to indicate the null value

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