com.espertech.esper.client.soda
Class ConstantExpression

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

public class ConstantExpression
extends ExpressionBase

Constant value returns a fixed value for use in expressions.

See Also:
Serialized Form

Constructor Summary
ConstantExpression()
          Ctor.
ConstantExpression(java.lang.Object constant)
          Ctor.
ConstantExpression(java.lang.Object constant, java.lang.String constantType)
          Ctor.
 
Method Summary
 java.lang.Object getConstant()
          Returns the constant value that the expression represents.
 java.lang.String getConstantType()
          Returns the type of the constant.
 ExpressionPrecedenceEnum getPrecedence()
          Returns precedence.
 void setConstant(java.lang.Object constant)
          Sets the constant value that the expression represents.
 void setConstantType(java.lang.String constantType)
          Sets the type of the constant.
 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

ConstantExpression

public ConstantExpression()
Ctor.


ConstantExpression

public ConstantExpression(java.lang.Object constant)
Ctor.

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

ConstantExpression

public ConstantExpression(java.lang.Object constant,
                          java.lang.String constantType)
Ctor.

Parameters:
constant - value
constantType - type
Method Detail

getConstantType

public java.lang.String getConstantType()
Returns the type of the constant.

Returns:
type

setConstantType

public void setConstantType(java.lang.String constantType)
Sets the type of the constant.

Parameters:
constantType - type

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

getConstant

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

Returns:
value of constant

setConstant

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

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

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