public class ELProcessor
extends java.lang.Object
Constructor and Description |
---|
ELProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
defineBean(java.lang.String name,
java.lang.Object bean) |
void |
defineFunction(java.lang.String prefix,
java.lang.String function,
java.lang.reflect.Method method)
Map a method to a function name.
|
void |
defineFunction(java.lang.String prefix,
java.lang.String function,
java.lang.String className,
java.lang.String methodName) |
java.lang.Object |
eval(java.lang.String expression) |
ELManager |
getELManager() |
java.lang.Object |
getValue(java.lang.String expression,
java.lang.Class<?> expectedType) |
void |
setValue(java.lang.String expression,
java.lang.Object value) |
void |
setVariable(java.lang.String variable,
java.lang.String expression) |
public ELManager getELManager()
public java.lang.Object eval(java.lang.String expression)
public java.lang.Object getValue(java.lang.String expression, java.lang.Class<?> expectedType)
public void setValue(java.lang.String expression, java.lang.Object value)
public void setVariable(java.lang.String variable, java.lang.String expression)
public void defineFunction(java.lang.String prefix, java.lang.String function, java.lang.String className, java.lang.String methodName) throws java.lang.ClassNotFoundException, java.lang.NoSuchMethodException
java.lang.ClassNotFoundException
java.lang.NoSuchMethodException
public void defineFunction(java.lang.String prefix, java.lang.String function, java.lang.reflect.Method method) throws java.lang.NoSuchMethodException
prefix
- Function prefixfunction
- Function namemethod
- Methodjava.lang.NullPointerException
- If any of the arguments are nulljava.lang.NoSuchMethodException
- If the method is not staticpublic void defineBean(java.lang.String name, java.lang.Object bean)
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.