public class Expression extends Object
Modifier and Type | Method and Description |
---|---|
static Value |
evalExpression(String expression,
PreprocessorContext context)
Evaluate expression
|
static Value |
evalTree(ExpressionTree tree,
PreprocessorContext context)
Evaluate an expression tree
|
public static Value evalExpression(String expression, PreprocessorContext context)
expression
- the expression as a String, must not be nullcontext
- a preprocessor context to be used for expression operationspublic static Value evalTree(ExpressionTree tree, PreprocessorContext context)
tree
- an expression tree, it must not be nullcontext
- a preprocessor context to be used for expression operationsCopyright © 2011–2021 Igor Maznitsa. All rights reserved.