com.espertech.esper.event.property
Class PropertyParser

java.lang.Object
  extended by com.espertech.esper.event.property.PropertyParser

public class PropertyParser
extends java.lang.Object

Parser for property names that can be simple, nested, mapped or a combination of these. Uses ANTLR parser to parse.


Constructor Summary
PropertyParser()
           
 
Method Summary
static boolean isNestedPropertyWithNonSimpleLead(EsperEPL2GrammarParser.EventPropertyContext ctx)
           
static boolean isPropertyDynamic(EsperEPL2GrammarParser.StartEventPropertyRuleContext ast)
          Returns true if the property is a dynamic property.
static EsperEPL2GrammarParser.StartEventPropertyRuleContext parse(java.lang.String propertyName)
          Parses a given property name returning an AST.
static Property parseAndWalk(java.lang.String property)
           
static Property parseAndWalk(java.lang.String property, boolean isRootedDynamic)
           
static java.lang.String unescapeBacktick(java.lang.String unescapedPropertyName)
           
static Property walk(EsperEPL2GrammarParser.StartEventPropertyRuleContext tree, boolean isRootedDynamic)
          Parse the given property name returning a Property instance for the property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyParser

public PropertyParser()
Method Detail

parseAndWalk

public static Property parseAndWalk(java.lang.String property,
                                    boolean isRootedDynamic)

parseAndWalk

public static Property parseAndWalk(java.lang.String property)

walk

public static Property walk(EsperEPL2GrammarParser.StartEventPropertyRuleContext tree,
                            boolean isRootedDynamic)
Parse the given property name returning a Property instance for the property.

Parameters:
isRootedDynamic - is true to indicate that the property is already rooted in a dynamic property and therefore all child properties should be dynamic properties as well
Returns:
Property instance for property

parse

public static EsperEPL2GrammarParser.StartEventPropertyRuleContext parse(java.lang.String propertyName)
Parses a given property name returning an AST.

Parameters:
propertyName - to parse
Returns:
AST syntax tree

isPropertyDynamic

public static boolean isPropertyDynamic(EsperEPL2GrammarParser.StartEventPropertyRuleContext ast)
Returns true if the property is a dynamic property.

Parameters:
ast - property ast
Returns:
dynamic or not

unescapeBacktick

public static java.lang.String unescapeBacktick(java.lang.String unescapedPropertyName)

isNestedPropertyWithNonSimpleLead

public static boolean isNestedPropertyWithNonSimpleLead(EsperEPL2GrammarParser.EventPropertyContext ctx)

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