public class Expression extends Object
| Modifier and Type | Method and Description |
|---|---|
Value |
eval()
Evaluate the expression
|
static Value |
evalExpression(String expression,
PreprocessorContext context)
Evaluate expression
|
static Value |
evalTree(ExpressionTree tree,
PreprocessorContext context)
Evaluate an expression tree
|
public Value eval()
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 operations,
it can be nullpublic static Value evalTree(ExpressionTree tree, PreprocessorContext context)
tree - an expression tree, it must not be nullcontext - a preprocessor context to be used for expression operations,
it can be nullCopyright © 2011–2019 Igor Maznitsa. All rights reserved.