Class VanExpressions
java.lang.Object
dev.vanengine.core.runtime.VanExpressions
Evaluates JavaScript-like expressions against a Java data model.
Two-phase design: expressions are compiled once into an VanExpressions.Expr tree,
then evaluated many times against different scopes. Compiled expressions are
cached globally — the same expression string is never re-parsed.
Thread-safe and stateless.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA compiled expression that can be evaluated against any scope. -
Method Summary
Modifier and TypeMethodDescriptionstatic VanExpressions.ExprCompile an expression string into a reusable Expr (for direct use).static Objectstatic booleanstatic booleanstatic ObjectresolvePath(String path, Map<String, ?> scope)
-
Method Details
-
evaluate
-
isTruthy
-
isTruthy
-
resolvePath
-
compile
Compile an expression string into a reusable Expr (for direct use).
-