See: Description
| Interface | Description |
|---|---|
| ClassResolver |
This object is responsible for finding the class by its name as appears in the source code.
|
| EvaluatorBuilder | |
| Scope |
| Class | Description |
|---|---|
| ClassPathClassResolver |
A
ClassResolver that searches classes in ClassLoader. |
| Compiler |
Compiles AST into execution plan, performing type checks.
|
| CompilerCommons | |
| Diagnostic | |
| Evaluator<F,V> | |
| ImportingClassResolver |
Class resolver that is capable of searching the class by its simple names, if it was imported directly or
its package was imported.
|
| Interpreter | |
| InterpretingEvaluatorBuilder | |
| Location | |
| MethodLookup | |
| Parser | |
| TypedPlan | |
| TypeEstimator |
| Exception | Description |
|---|---|
| InterpretationException | |
| InvalidExpressionException |
| Annotation Type | Description |
|---|---|
| VariableName |
This package contains classes necessary to parse, compile and evaluate expressions written on Flavour Expression Language (FEL). FEL is mostly used in Flavour templates. Unlike most other expression language, this language is statically typed, that allows to verify templates in compile time.
Here are several examples of Flavour expressions:
23 – evaluates the number constant;x + 2 – evaluates sum;foo(x) – calls method of current context, shorthand for this.foo(x);v.bar – either gets value of bar field if it exists and is public, or
calls v.getBar() method;Flavour expression passes the following phases:
org.teavm.flavour.expr.ast).
The Parser class is responsible for this phase.org.teavm.flavour.expr.plan). To compile expression from AST, use
Compiler class.InterpreterCopyright © 2019. All rights reserved.