Class | Description |
---|---|
JavascriptCompiler |
An expression compiler for javascript expressions.
|
VariableContext |
A helper to parse the context of a variable name, which is the base variable, followed by the
sequence of array (integer or string indexed) and member accesses.
|
Enum | Description |
---|---|
VariableContext.Type |
Represents what a piece of a variable does.
|
A Javascript expression is a numeric expression specified using an expression syntax that's based on JavaScript expressions. You can construct expressions using:
+ - * / %
| & ^ ~ << >> >>>
&& || ! ?:
< <= == >= >
abs ceil exp floor ln log10 logn max min sqrt pow
acosh acos asinh asin atanh atan atan2 cosh cos sinh sin tanh tan
haversin
min, max
Bindings
JavaScript order of precedence rules apply for operators. Shortcut evaluation is used for logical operators—the second argument is only evaluated if the value of the expression cannot be determined after evaluating the first argument. For example, in the expression a || b
, b
is only evaluated if a is not true.
To compile an expression, use JavascriptCompiler
.
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.