public final class Parser extends Object
| Constructor and Description |
|---|
Parser()
Deprecated.
seems of no use, since Parser is always created from Compiler with Grammar instance
|
Parser(Grammar grammar)
Constructs the Parser with given DefaultXMLGrammar object
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
List<ExpressionToken> |
parse(String expression)
It parses the given expression string into ExpressionToken objects and
returns the list of ExpressionTokens.
|
public Parser()
public Parser(Grammar grammar)
grammar - the grammar using which it parse the expression.IllegalArgumentException - if the grammar is null.public final List<ExpressionToken> parse(String expression) throws ExpressionEngineException
expression - the expression string to parseExpressionEngineException - if unable to parseIllegalArgumentException - if the expression is not a qualified stringpublic static void main(String[] args) throws ExpressionEngineException
ExpressionEngineException