Top Description Inners Fields Constructors Methods
com.sun.faces.el

public Class ELContextImpl

extends ELContext
Class Inheritance
Static Imports
com.sun.faces.el.ELUtils.getDefaultExpressionFactory

Concrete implementation of jakarta.el.ELContext. ELContext's constructor is protected to control creation of ELContext objects through their appropriate factory methods. This version of ELContext forces construction through FacesContextImpl.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Field Summary

Modifier and TypeField and Description
private FunctionMapper
private final ELResolver
private VariableMapper

Constructor Summary

AccessConstructor and Description
public
ELContextImpl(ELResolver
the ELResolver to return from getELResolver()
resolver
)

Constructs a new ELContext associated with the given ELResolver.

public

Method Summary

Modifier and TypeMethod and Description
public ELResolver
getELResolver()

Implements abstract jakarta.el.ELContext.getELResolver.

Retrieves the ELResolver associated with this context.

public FunctionMapper
getFunctionMapper()

Implements abstract jakarta.el.ELContext.getFunctionMapper.

Retrieves the FunctionMapper associated with this ELContext.

public VariableMapper
getVariableMapper()

Implements abstract jakarta.el.ELContext.getVariableMapper.

Retrieves the VariableMapper associated with this ELContext.

public void
Inherited from jakarta.el.ELContext:
addEvaluationListenerconvertToTypeenterLambdaScopeexitLambdaScopegetContextgetEvaluationListenersgetImportHandlergetLambdaArgumentgetLocaleisLambdaArgumentisPropertyResolvednotifyAfterEvaluationnotifyBeforeEvaluationnotifyPropertyResolvedputContextsetLocalesetPropertyResolvedsetPropertyResolved

Field Detail

functionMapperback to summary
private FunctionMapper functionMapper
resolverback to summary
private final ELResolver resolver
variableMapperback to summary
private VariableMapper variableMapper

Constructor Detail

ELContextImplback to summary
public ELContextImpl(ELResolver resolver)

Constructs a new ELContext associated with the given ELResolver.

Parameters
resolver:ELResolver

the ELResolver to return from getELResolver()

ELContextImplback to summary
public ELContextImpl(FacesContext facesContext)

Method Detail

getELResolverback to summary
public ELResolver getELResolver()

Implements abstract jakarta.el.ELContext.getELResolver.

Doc from jakarta.el.ELContext.getELResolver.

Retrieves the ELResolver associated with this context.

The ELContext maintains a reference to the ELResolver that will be consulted to resolve variables and properties during an expression evaluation. This method retrieves the reference to the resolver.

Once an ELContext is constructed, the reference to the ELResolver associated with the context cannot be changed.

Returns:ELResolver

The resolver to be consulted for variable and property resolution during expression evaluation.

Annotations
@Override
getFunctionMapperback to summary
public FunctionMapper getFunctionMapper()

Implements abstract jakarta.el.ELContext.getFunctionMapper.

Doc from jakarta.el.ELContext.getFunctionMapper.

Retrieves the FunctionMapper associated with this ELContext.

Returns:FunctionMapper

The function mapper to be consulted for the resolution of Jakarta Expression Language functions.

Annotations
@Override
getVariableMapperback to summary
public VariableMapper getVariableMapper()

Implements abstract jakarta.el.ELContext.getVariableMapper.

Doc from jakarta.el.ELContext.getVariableMapper.

Retrieves the VariableMapper associated with this ELContext.

Returns:VariableMapper

The variable mapper to be consulted for the resolution of Jakarta Expression Language variables.

Annotations
@Override
setFunctionMapperback to summary
public void setFunctionMapper(FunctionMapper functionMapper)
com.sun.faces.el back to summary

private Class ELContextImpl.NoopFunctionMapper

extends FunctionMapper
Class Inheritance

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Method
resolveFunction(String
the prefix of the function, or "" if no prefix. For example, "fn" in ${fn:method()}, or "" in ${method()}.
s
,
String
the short name of the function. For example, "method" in ${fn:method()}.
s1
)

Implements abstract jakarta.el.FunctionMapper.resolveFunction.

Resolves the specified prefix and local name into a java.lang.Method.

Inherited from jakarta.el.FunctionMapper:
mapFunction

Constructor Detail

NoopFunctionMapperback to summary
private NoopFunctionMapper()

Method Detail

resolveFunctionback to summary
public Method resolveFunction(String s, String s1)

Implements abstract jakarta.el.FunctionMapper.resolveFunction.

Doc from jakarta.el.FunctionMapper.resolveFunction.

Resolves the specified prefix and local name into a java.lang.Method.

Returns null if no function could be found that matches the given prefix and local name.

Parameters
s:String

the prefix of the function, or "" if no prefix. For example, "fn" in ${fn:method()}, or "" in ${method()}.

s1:String

the short name of the function. For example, "method" in ${fn:method()}.

Returns:Method

the static method to invoke, or null if no match was found.

Annotations
@Override
com.sun.faces.el back to summary

private Class ELContextImpl.VariableMapperImpl

extends VariableMapper
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Map<String, ValueExpression>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ValueExpression
resolveVariable(String
The variable name
variable
)

Implements abstract jakarta.el.VariableMapper.resolveVariable.

public ValueExpression
setVariable(String
The variable name
variable
,
ValueExpression
The ValueExpression to be assigned to the variable.
valueExpression
)

Implements abstract jakarta.el.VariableMapper.setVariable.

Assign a ValueExpression to an Jakarta Expression Language variable, replacing any previously assignment to the same variable.

Field Detail

variablesback to summary
private final Map<String, ValueExpression> variables

Constructor Detail

VariableMapperImplback to summary
public VariableMapperImpl()

Method Detail

resolveVariableback to summary
public ValueExpression resolveVariable(String variable)

Implements abstract jakarta.el.VariableMapper.resolveVariable.

Parameters
variable:String

Doc from jakarta.el.VariableMapper.resolveVariable.

The variable name

Returns:ValueExpression

Doc from jakarta.el.VariableMapper.resolveVariable.

the ValueExpression assigned to the variable, null if there is no previous assignment to this variable.

Annotations
@Override
setVariableback to summary
public ValueExpression setVariable(String variable, ValueExpression valueExpression)

Implements abstract jakarta.el.VariableMapper.setVariable.

Doc from jakarta.el.VariableMapper.setVariable.

Assign a ValueExpression to an Jakarta Expression Language variable, replacing any previously assignment to the same variable. The assignment for the variable is removed if the expression is null.

Parameters
variable:String

The variable name

valueExpression:ValueExpression

The ValueExpression to be assigned to the variable.

Returns:ValueExpression

The previous ValueExpression assigned to this variable, null if there is no previous assignment to this variable.

Annotations
@Override