public class AdfELContext
extends javax.el.ELContext
Constructor and Description |
---|
AdfELContext(AdfELContext parent) |
Modifier and Type | Method and Description |
---|---|
void |
clearCurrentELResolutionPath()
Clear the current EL resolution path
|
boolean |
containsVariable(String variable)
Determine if the variable exists in this context
|
Object |
evaluateVariable(String variable)
Convenience method to evaluate a variable through the VariableResolver.
|
String |
getCurrentELResolutionPath()
Get the current EL resoultion path
|
String |
getCurrentExpression()
Returns the expression string that is currently being resolved in this context.
|
int |
getDepth() |
javax.el.ELResolver |
getELResolver()
Get our resolver.
|
javax.el.ExpressionFactory |
getExpressionFactory()
Get an expression factory
|
javax.el.FunctionMapper |
getFunctionMapper()
Get our function mapper.
|
AdfELContext |
getParent()
Get the context's parent
|
javax.el.VariableMapper |
getVariableMapper()
Get our variable mapper.
|
String[] |
getVariableNames()
Get the list of variable names defined in the this context.
|
boolean |
isCurrentExpressionVolatile()
Determine if the current expression is volatile
|
boolean |
isResolvingBeanId()
Deprecated.
We no longer need to use this since searchKnownScopes will now just do a
containsKey check and not actually try and load then bean
|
boolean |
isResolvingSetValue()
Objects that lazy load and build up a tree as they resolve can use this method to determine
whether they are resolving in the context of a getValue or a setValue operation.
|
void |
registerCurrentExpressionAsVolatile()
If the current expression being resolved includes a method execution, this marks that
expression as volatile so that the response returned to the Container containing its value
is flagged not to be cached.
|
void |
release()
Clear the root variables
|
void |
setCurrentExpression(String value)
Sets the expression string that is currently being resolved in this context.
|
void |
setResolvingSetValue(boolean value)
Callers should always set the value back to false in a finally block that guards the preceding
setValue operation:
|
void |
setVariable(String variable,
Object value,
Class type)
Convenience method to set a variable through the VariableResolver.
|
javax.el.ValueExpression |
setVariable(String name,
javax.el.ValueExpression expression)
Define a variable.
|
String |
updateCurrentELResolutionPath(String property,
boolean root)
Augment the current EL resolution path with the given property
|
public AdfELContext(AdfELContext parent)
public void release()
public AdfELContext getParent()
public int getDepth()
public javax.el.ValueExpression setVariable(String name, javax.el.ValueExpression expression)
public void setVariable(String variable, Object value, Class type)
public Object evaluateVariable(String variable)
public javax.el.FunctionMapper getFunctionMapper()
getFunctionMapper
in class javax.el.ELContext
public javax.el.VariableMapper getVariableMapper()
getVariableMapper
in class javax.el.ELContext
public javax.el.ELResolver getELResolver()
SimpleResolver
if necessary.getELResolver
in class javax.el.ELContext
public boolean containsVariable(String variable)
public String[] getVariableNames()
public javax.el.ExpressionFactory getExpressionFactory()
public boolean isResolvingSetValue()
public boolean isResolvingBeanId()
public void setResolvingSetValue(boolean value)
try { context.setResolvingSetValue(true); vex.setValue(context, value); } finally { context.setResolvingSetValue(false); }
value
- isResolvingSetValue()
public String getCurrentExpression()
public void setCurrentExpression(String value)
value
- public void registerCurrentExpressionAsVolatile()
public boolean isCurrentExpressionVolatile()
public String getCurrentELResolutionPath()
public void clearCurrentELResolutionPath()
public String updateCurrentELResolutionPath(String property, boolean root)