This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these messages)
|
Developer(s) | Mike Brock and Various Contributors |
---|---|
Stable release | 2.3.0
/ June 15, 2016 |
Repository | |
Written in | Java |
Operating system | Cross-platform |
Type | Expression Language (EL) |
License | Apache License |
Website | https://github.com/mvel/mvel |
MVFLEX Expression Language (MVEL) is a hybrid dynamic/statically typed, embeddable Expression Language and runtime for the Java Platform. Originally started as a utility language for an application framework, the project is now developed completely independently.
MVEL is typically used for exposing basic logic to end-users and programmers through configuration such as XML files or annotations. It may also be used to parse simple JavaBean expressions.
The runtime allows MVEL expressions to be executed either interpretively, or through a pre-compilation process with support for runtime bytecode generation to remove overhead.
Since MVEL is meant to augment Java-based software, it borrows most of its syntax directly from the Java programming language with some minor differences and additional capabilities. For example: as a side effect of MVEL's typing model, which treats class and method references as regular variables, it is possible to use both class and function pointers (but only for static methods).
millis = System.currentTimeMillis;
// get millis
time = millis();
MVEL also allows collections to be represented as folds (or projections) in a Lisp-like syntax.
namesOfParents = (parent.name in (children in employees));