| java.lang.Object org.zkoss.xel.util.Evaluators
Evaluators | public class Evaluators (Code) | | It mapps a name with an evaluator implementation.
author: tomyeh since: 3.0.0 |
Method Summary | |
final public static String | add(String name, String evalcls) Adds an evaluator
(aka., the expression factory,
org.zkoss.xel.ExpressionFactory ).
Parameters: name - the name of the evaluator, say, MVEL.It is case insensitive. Parameters: evalcls - the class name of the evaluator, aka., the expression factory(org.zkoss.xel.ExpressionFactory). | final public static String | add(Element config) Adds an evaluator based on the XML declaration. | final public static boolean | exists(String name) Tests whether the evaluator (aka., the expression factory)
for the specified evaluator name
exists. | final public static Class | getEvaluatorClass(String name) Returns the implementation for the specified evaluator name. | final static synchronized void | load() |
add | final public static String add(Element config)(Code) | | Adds an evaluator based on the XML declaration.
The evaluator is also known as the expression factory,
org.zkoss.xel.ExpressionFactory .
<xel-config>
<evaluator-name>SuperEL</evaluator-name><!-- case insensitive --!>
<evaluator-class>my.MySuperEvaluator</evaluator-class>
</xel-config>
Parameters: config - the XML element called zscript-config the previous class, or null if not defined yet |
exists | final public static boolean exists(String name)(Code) | | Tests whether the evaluator (aka., the expression factory)
for the specified evaluator name
exists.
Parameters: name - the name of the evaluator, say, MVEL. |
getEvaluatorClass | final public static Class getEvaluatorClass(String name)(Code) | | Returns the implementation for the specified evaluator name.
Parameters: name - the name of the evaluator, say, MVEL. exception: SystemException - if not found or the class not found. |
load | final static synchronized void load()(Code) | | Loads from metainfo/xel/config
|
|
|