net.esper.eql.spec
Class SubstitutionParameterExpression

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

public class SubstitutionParameterExpression
extends ExpressionBase

Substitution parameter that represents a node in an expression tree for which to supply a parameter value before statement creation time.

See Also:
Serialized Form

Constructor Summary
SubstitutionParameterExpression(int index)
          Ctor.
 
Method Summary
 Object getConstant()
          Returns the constant value that the expression represents.
 int getIndex()
          Returns the index of the parameter.
 boolean isSatisfied()
          Returns true if the parameter is satisfied, or false if not.
 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

SubstitutionParameterExpression

public SubstitutionParameterExpression(int index)
Ctor.

Parameters:
index - is the index of the substitution parameter
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

isSatisfied

public boolean isSatisfied()
Returns true if the parameter is satisfied, or false if not.

Returns:
true if the actual value is supplied, false if not

getIndex

public int getIndex()
Returns the index of the parameter.

Returns:
parameter index.

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