public class Compiler extends Object
| Constructor and Description |
|---|
Compiler()
Constructs the Compiler with default DefaultXMLGrammar Instance
|
Compiler(Grammar grammar)
Constructs the Compiler with specified DefaultXMLGrammar instance.
|
| Modifier and Type | Method and Description |
|---|---|
Expression |
compile(String expression,
ExpressionContext expressionContext,
boolean validate)
Builds a tree of Expression objects representing the expression.
|
public Compiler()
public Compiler(Grammar grammar)
grammar - the grammar using which compiler will parse the expressionIllegalArgumentException - if the grammar object is nullpublic Expression compile(String expression, ExpressionContext expressionContext, boolean validate) throws ExpressionEngineException
expression - the string representing the expression to buildexpressionContext - the object which may contain contextual information for expressionsExpressionEngineException