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 isPropertyDynamic(org.antlr.runtime.tree.Tree ast)
          Returns true if the property is a dynamic property.
static org.antlr.runtime.tree.Tree parse(java.lang.String propertyName)
          Parses a given property name returning an AST.
static Property parse(java.lang.String propertyName, boolean isRootedDynamic)
          Parse the given property name returning a Property instance for the property.
static java.lang.String unescapeBacktick(java.lang.String unescapedPropertyName)
           
 
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

parse

public static Property parse(java.lang.String propertyName,
                             boolean isRootedDynamic)
Parse the given property name returning a Property instance for the property.

Parameters:
propertyName - is the property name to parse
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 org.antlr.runtime.tree.Tree 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(org.antlr.runtime.tree.Tree 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)

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