com.espertech.esper.epl.parse
Class ASTParameterHelper

java.lang.Object
  extended by com.espertech.esper.epl.parse.ASTParameterHelper

public class ASTParameterHelper
extends Object

Parse AST parameter nodes including constants, arrays, lists. Distinguishes between uniform and non-uniform arrays.


Constructor Summary
ASTParameterHelper()
           
 
Method Summary
static Object makeParameter(org.antlr.runtime.tree.Tree parameterNode, long engineTime)
          Returns the parse Object for the parameter/constant AST node whose text to parse.
protected static TimePeriodParameter makeTimePeriod(org.antlr.runtime.tree.Tree node, long engineTime)
          Returns a time period from an AST node and taking engine time (year etc) into account.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ASTParameterHelper

public ASTParameterHelper()
Method Detail

makeParameter

public static Object makeParameter(org.antlr.runtime.tree.Tree parameterNode,
                                   long engineTime)
                            throws ASTWalkException
Returns the parse Object for the parameter/constant AST node whose text to parse.

Parameters:
parameterNode - - AST node to parse
engineTime - the engine current time
Returns:
object value
Throws:
ASTWalkException - is thrown to indicate a parse error

makeTimePeriod

protected static TimePeriodParameter makeTimePeriod(org.antlr.runtime.tree.Tree node,
                                                    long engineTime)
Returns a time period from an AST node and taking engine time (year etc) into account.

Parameters:
node - is the AST root node of the time period
engineTime - current time
Returns:
time period

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