|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.epl.parse.ExceptionConvertor
public class ExceptionConvertor
Converts recognition exceptions.
Constructor Summary | |
---|---|
ExceptionConvertor()
|
Method Summary | |
---|---|
static UniformPair<java.lang.String> |
convert(org.antlr.runtime.RecognitionException e,
java.lang.String expression,
boolean addPleaseCheck,
EsperEPL2GrammarParser parser)
Converts from a syntax error to a nice exception. |
static EPStatementSyntaxException |
convert(org.antlr.runtime.RecognitionException e,
java.lang.String expression,
EsperEPL2Ast treeWalker)
Converts from a syntax error to a nice statement exception. |
static PropertyAccessException |
convertProperty(org.antlr.runtime.RecognitionException e,
java.lang.String expression,
boolean addPleaseCheck,
EsperEPL2GrammarParser parser)
Converts from a syntax error to a nice property exception. |
static EPStatementSyntaxException |
convertStatement(org.antlr.runtime.RecognitionException e,
java.lang.String expression,
boolean addPleaseCheck,
EsperEPL2GrammarParser parser)
Converts from a syntax error to a nice statement exception. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExceptionConvertor()
Method Detail |
---|
public static EPStatementSyntaxException convertStatement(org.antlr.runtime.RecognitionException e, java.lang.String expression, boolean addPleaseCheck, EsperEPL2GrammarParser parser)
e
- is the syntax errorexpression
- is the expression textparser
- the parser that parsed the expressionaddPleaseCheck
- indicates to add "please check" paraphrases
public static PropertyAccessException convertProperty(org.antlr.runtime.RecognitionException e, java.lang.String expression, boolean addPleaseCheck, EsperEPL2GrammarParser parser)
e
- is the syntax errorexpression
- is the expression textparser
- the parser that parsed the expressionaddPleaseCheck
- indicates to add "please check" paraphrases
public static UniformPair<java.lang.String> convert(org.antlr.runtime.RecognitionException e, java.lang.String expression, boolean addPleaseCheck, EsperEPL2GrammarParser parser)
e
- is the syntax errorexpression
- is the expression textparser
- the parser that parsed the expressionaddPleaseCheck
- indicates to add "please check" paraphrases
public static EPStatementSyntaxException convert(org.antlr.runtime.RecognitionException e, java.lang.String expression, EsperEPL2Ast treeWalker)
e
- is the syntax errorexpression
- is the expression texttreeWalker
- the tree walker that walked the tree
|
© 2006-2014 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 |