|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.epl.parse.ParseHelper
public class ParseHelper
Helper class for parsing an expression and walking a parse tree.
Field Summary | |
---|---|
static java.lang.String |
newline
Newline. |
Constructor Summary | |
---|---|
ParseHelper()
|
Method Summary | |
---|---|
static boolean |
hasControlCharacters(java.lang.String text)
|
static EsperEPL2GrammarLexer |
newLexer(org.antlr.v4.runtime.CharStream input)
|
static EsperEPL2GrammarParser |
newParser(org.antlr.v4.runtime.CommonTokenStream tokens)
|
static ParseResult |
parse(java.lang.String expression,
java.lang.String eplStatementErrorMsg,
boolean addPleaseCheck,
ParseRuleSelector parseRuleSelector,
boolean rewriteScript)
Parse expression using the rule the ParseRuleSelector instance supplies. |
static void |
walk(org.antlr.v4.runtime.tree.Tree ast,
EPLTreeWalkerListener listener,
java.lang.String expression,
java.lang.String eplStatementForErrorMsg)
Walk parse tree starting at the rule the walkRuleSelector supplies. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String newline
Constructor Detail |
---|
public ParseHelper()
Method Detail |
---|
public static void walk(org.antlr.v4.runtime.tree.Tree ast, EPLTreeWalkerListener listener, java.lang.String expression, java.lang.String eplStatementForErrorMsg)
ast
- - ast to walklistener
- - walker instanceexpression
- - the expression we are walking in string formeplStatementForErrorMsg
- - statement text for error messagespublic static ParseResult parse(java.lang.String expression, java.lang.String eplStatementErrorMsg, boolean addPleaseCheck, ParseRuleSelector parseRuleSelector, boolean rewriteScript) throws EPException
expression
- - text to parseparseRuleSelector
- - parse rule to selectaddPleaseCheck
- - true to include depth paraphraseeplStatementErrorMsg
- - text for error
EPException
- when the AST could not be parsedpublic static EsperEPL2GrammarLexer newLexer(org.antlr.v4.runtime.CharStream input)
public static EsperEPL2GrammarParser newParser(org.antlr.v4.runtime.CommonTokenStream tokens)
public static boolean hasControlCharacters(java.lang.String text)
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |