|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.oozie.util.ELEvaluator.Context
public static class ELEvaluator.Context
Provides functions and variables for the EL evaluator.
All functions and variables in the context of an EL evaluator are accessible from EL expressions.
| Constructor Summary | |
|---|---|
ELEvaluator.Context()
Create an empty context. |
|
| Method Summary | |
|---|---|
void |
addFunction(String prefix,
String functionName,
Method method)
Add a function to the context. |
Object |
getVariable(String name)
Return a variable from the context. |
Method |
resolveFunction(String prefix,
String name)
Resolve a function prefix:name. |
Object |
resolveVariable(String name)
Resolve a variable name. |
void |
setVariable(String name,
Object value)
Add a variable to the context. |
void |
setVariables(Map<String,Object> vars)
Add variables to the context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ELEvaluator.Context()
| Method Detail |
|---|
public void setVariables(Map<String,Object> vars)
vars - variables to add to the context.
public void setVariable(String name,
Object value)
name - variable name.value - variable value.public Object getVariable(String name)
name - variable name.
public void addFunction(String prefix,
String functionName,
Method method)
prefix - function prefix.functionName - function name.method - method that will be invoked for the function, it must be a static and public method.
public Object resolveVariable(String name)
throws javax.servlet.jsp.el.ELException
resolveVariable in interface javax.servlet.jsp.el.VariableResolvername - variable name.
javax.servlet.jsp.el.ELException - thrown if the variable is not defined in the context.
public Method resolveFunction(String prefix,
String name)
resolveFunction in interface javax.servlet.jsp.el.FunctionMapperprefix - function prefix.name - function name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||