|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.xel.util.Evaluators
public class Evaluators
It mapps a name with an evaluator implementation.
| Method Summary | |
|---|---|
static java.lang.String |
add(Element config)
Adds an evaluator based on the XML declaration. |
static java.lang.String |
add(java.lang.String name,
java.lang.String evalcls)
Adds an evaluator (aka., the expression factory, ExpressionFactory). |
static boolean |
exists(java.lang.String name)
Tests whether the evaluator (aka., the expression factory) for the specified evaluator name exists. |
static java.lang.Class |
getEvaluatorClass(java.lang.String name)
Returns the implementation for the specified evaluator name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static final java.lang.Class getEvaluatorClass(java.lang.String name)
name - the name of the evaluator, say, MVEL.
SystemException - if not found or the class not found.public static final boolean exists(java.lang.String name)
name - the name of the evaluator, say, MVEL.
public static final java.lang.String add(java.lang.String name,
java.lang.String evalcls)
ExpressionFactory).
name - the name of the evaluator, say, MVEL.
It is case insensitive.evalcls - the class name of the evaluator, aka., the expression factory
(ExpressionFactory).
public static final java.lang.String add(Element config)
ExpressionFactory.
<xel-config>
<evaluator-name>SuperEL</evaluator-name><!-- case insensitive --!>
<evaluator-class>my.MySuperEvaluator</evaluator-class>
</xel-config>
config - the XML element called zscript-config
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||