public class ELProcessor extends Object
| Constructor and Description |
|---|
ELProcessor() |
| Modifier and Type | Method and Description |
|---|---|
void |
defineBean(String name,
Object bean) |
void |
defineFunction(String prefix,
String function,
Method method)
Map a method to a function name.
|
void |
defineFunction(String prefix,
String function,
String className,
String methodName) |
Object |
eval(String expression) |
ELManager |
getELManager() |
Object |
getValue(String expression,
Class<?> expectedType) |
void |
setValue(String expression,
Object value) |
void |
setVariable(String variable,
String expression) |
public ELManager getELManager()
public void defineFunction(String prefix, String function, String className, String methodName) throws ClassNotFoundException, NoSuchMethodException
public void defineFunction(String prefix, String function, Method method) throws NoSuchMethodException
prefix - Function prefixfunction - Function namemethod - MethodNullPointerException - If any of the arguments are nullNoSuchMethodException - If the method is not staticCopyright © 2014–2021. All rights reserved.