Utility class for EL related methods.
| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| public static final ArrayELResolver | |
| public static final BeanELResolver | |
| public static final ResourceBundleELResolver | |
| public static final CompositeComponentAttributesELResolver | |
| private static final Pattern | COMPOSITE_COMPONENT_EXPRESSION
Helps to determine if a EL expression represents a composite component EL expression. |
| private static final Pattern | COMPOSITE_COMPONENT_LOOKUP_WITH_ARGS
Used to determine if EL method arguments are being passed to a composite component lookup expression. |
| private static final String | |
| public static final FacesResourceBundleELResolver | |
| private static final String | |
| public static final FlashELResolver | |
| private static final String | |
| private static final String | |
| public static final ImplicitObjectELResolverForJsp | |
| public static final ImplicitObjectELResolver | |
| private static final String | |
| public static final ListELResolver | |
| public static final ManagedBeanELResolver | |
| public static final MapELResolver | |
| private static final Pattern | METHOD_EXPRESSION_LOOKUP
Use to determine if an expression being considered as a MethodExpression is a simple lookup (i.e. #{cc.attrs.myaction}). |
| private static final String | |
| private static final String | |
| private static final String | |
| public static final ResourceELResolver | |
| public static final ScopedAttributeELResolver | |
| private static final String | |
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| private static void | addELResolvers(CompositeELResolver
the target, List<ELResolver> CompositeELResolver to which
the ELResolvers will be added.a resolvers)List of ELResolversAdd the |
| private static void | addPropertyResolvers(CompositeELResolver
the target, ApplicationAssociate CompositeELResolver to which
the PropertyResolvers will be added.our ApplicationAssociate associate)Add any |
| private static void | addVariableResolvers(FacesCompositeELResolver
the target, FacesCompositeELResolver.CompositeELResolver to which
the VariableResolvers will be added.our ApplicationAssociate associate)Add any |
| public static void | buildFacesResolver(FacesCompositeELResolver
a composite, ApplicationAssociate CompositeELResolverour ApplicationAssociate associate)Create the |
| public static void | buildJSPResolver(FacesCompositeELResolver
a composite, ApplicationAssociate CompositeELResolverour ApplicationAssociate associate)Create the |
| private static void | |
| public static Object | |
| public static ValueExpression | Returns: a newValueExpression instance based off the
provided valueRefan EL expression expression)Create a |
| public static ValueExpression | |
| public static Object | |
| public static ExpressionFactory | |
| public static ExpressionFactory | |
| public static PropertyResolver | Returns: thePropertyResolvers set via
javax.faces.application.Application#setPropertyResolver(javax.faces.el.PropertyResolver)
or, if that is null, return the PropertyResolver
chain from the parsed configuration resources. If either of those are
null, and provideDefault is true,
return the DummyPropertyResolverImpl.the associate, boolean ApplicationAssociatewhether or not to return a
provideDefault)DummpyPropertyResolverImpl
Deprecated
as a consequence of
PropertyResolver being deprecated.
|
| public static VariableResolver | Returns: theVariableResolvers set via
javax.faces.application.Application#setVariableResolver(javax.faces.el.VariableResolver)
or, if that is null, return the VariableResolver
chain from the parsed configuration resources. If either of those are
null, , and provideDefault is true,
return the ChainAwareVariableResolver.the associate, boolean ApplicationAssociatewhether or not to return a
provideDefault)DummpyPropertyResolverImpl
Deprecated
as a consequence of
VariableResolver being deprecated.
|
| public static List | Returns: a List of expressions from the expressionStringthe expression string, with delimiters
intact. expressionString)
|
| private static int | Returns: index of the first occurrence of . or [the expression from which the first segment
will be obtained valueBinding)The the first segment of a String tokenized by a "." or "[" |
| public static ELUtils. | |
| public static ELUtils. | |
| public static ELUtils. | |
| public static ELUtils. | |
| public static ELUtils. | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| public static boolean | |
| private static String | |
| private static boolean |
| APPLICATION_SCOPE | back to summary |
|---|---|
| private static final String APPLICATION_SCOPE | |
| ARRAY_RESOLVER | back to summary |
|---|---|
| public static final ArrayELResolver ARRAY_RESOLVER | |
| BEAN_RESOLVER | back to summary |
|---|---|
| public static final BeanELResolver BEAN_RESOLVER | |
| BUNDLE_RESOLVER | back to summary |
|---|---|
| public static final ResourceBundleELResolver BUNDLE_RESOLVER | |
| COMPOSITE_COMPONENT_ATTRIBUTES_EL_RESOLVER | back to summary |
|---|---|
| public static final CompositeComponentAttributesELResolver COMPOSITE_COMPONENT_ATTRIBUTES_EL_RESOLVER | |
| COMPOSITE_COMPONENT_EXPRESSION | back to summary |
|---|---|
| private static final Pattern COMPOSITE_COMPONENT_EXPRESSION Helps to determine if a EL expression represents a composite component EL expression. | |
| COMPOSITE_COMPONENT_LOOKUP_WITH_ARGS | back to summary |
|---|---|
| private static final Pattern COMPOSITE_COMPONENT_LOOKUP_WITH_ARGS Used to determine if EL method arguments are being passed to a composite component lookup expression. For example: #{cc.attrs.label('foo')} is illegal, while: #{cc.attrs.bean.label('foo')} is legal. | |
| COOKIE_IMPLICIT_OBJ | back to summary |
|---|---|
| private static final String COOKIE_IMPLICIT_OBJ | |
| FACES_BUNDLE_RESOLVER | back to summary |
|---|---|
| public static final FacesResourceBundleELResolver FACES_BUNDLE_RESOLVER | |
| FACES_CONTEXT_IMPLICIT_OBJ | back to summary |
|---|---|
| private static final String FACES_CONTEXT_IMPLICIT_OBJ | |
| FLASH_RESOLVER | back to summary |
|---|---|
| public static final FlashELResolver FLASH_RESOLVER | |
| HEADER_IMPLICIT_OBJ | back to summary |
|---|---|
| private static final String HEADER_IMPLICIT_OBJ | |
| HEADER_VALUES_IMPLICIT_OBJ | back to summary |
|---|---|
| private static final String HEADER_VALUES_IMPLICIT_OBJ | |
| IMPLICIT_JSP_RESOLVER | back to summary |
|---|---|
| public static final ImplicitObjectELResolverForJsp IMPLICIT_JSP_RESOLVER | |
| IMPLICIT_RESOLVER | back to summary |
|---|---|
| public static final ImplicitObjectELResolver IMPLICIT_RESOLVER | |
| INIT_PARAM_IMPLICIT_OBJ | back to summary |
|---|---|
| private static final String INIT_PARAM_IMPLICIT_OBJ | |
| LIST_RESOLVER | back to summary |
|---|---|
| public static final ListELResolver LIST_RESOLVER | |
| MANAGED_BEAN_RESOLVER | back to summary |
|---|---|
| public static final ManagedBeanELResolver MANAGED_BEAN_RESOLVER | |
| MAP_RESOLVER | back to summary |
|---|---|
| public static final MapELResolver MAP_RESOLVER | |
| METHOD_EXPRESSION_LOOKUP | back to summary |
|---|---|
| private static final Pattern METHOD_EXPRESSION_LOOKUP Use to determine if an expression being considered as a MethodExpression is a simple lookup (i.e. #{cc.attrs.myaction}). | |
| PARAM_IMPLICIT_OBJ | back to summary |
|---|---|
| private static final String PARAM_IMPLICIT_OBJ | |
| PARAM_VALUES_IMPLICIT_OBJ | back to summary |
|---|---|
| private static final String PARAM_VALUES_IMPLICIT_OBJ | |
| REQUEST_SCOPE | back to summary |
|---|---|
| private static final String REQUEST_SCOPE | |
| RESOURCE_RESOLVER | back to summary |
|---|---|
| public static final ResourceELResolver RESOURCE_RESOLVER | |
| SCOPED_RESOLVER | back to summary |
|---|---|
| public static final ScopedAttributeELResolver SCOPED_RESOLVER | |
| SESSION_SCOPE | back to summary |
|---|---|
| private static final String SESSION_SCOPE | |
| VIEW_IMPLICIT_OBJ | back to summary |
|---|---|
| private static final String VIEW_IMPLICIT_OBJ | |
| VIEW_SCOPE | back to summary |
|---|---|
| private static final String VIEW_SCOPE | |
| ELUtils | back to summary |
|---|---|
| private ELUtils() | |
| addEL3_0_Resolvers | back to summary |
|---|---|
| private static void addEL3_0_Resolvers(FacesCompositeELResolver composite, ApplicationAssociate associate) | |
| addELResolvers | back to summary |
|---|---|
| private static void addELResolvers(CompositeELResolver target, List<ELResolver> resolvers) Add the
| |
| addPropertyResolvers | back to summary |
|---|---|
| private static void addPropertyResolvers(CompositeELResolver target, ApplicationAssociate associate) Add any
| |
| addVariableResolvers | back to summary |
|---|---|
| private static void addVariableResolvers(FacesCompositeELResolver target, FacesCompositeELResolver. Add any
| |
| buildFacesResolver | back to summary |
|---|---|
| public static void buildFacesResolver(FacesCompositeELResolver composite, ApplicationAssociate associate) Create the
| |
| buildJSPResolver | back to summary |
|---|---|
| public static void buildJSPResolver(FacesCompositeELResolver composite, ApplicationAssociate associate) Create the
| |
| checkNotNull | back to summary |
|---|---|
| private static void checkNotNull(FacesCompositeELResolver composite, ApplicationAssociate associate) | |
| coerce | back to summary |
|---|---|
| public static Object coerce(Object value, Class<?> toType) | |
| createValueExpression | back to summary |
|---|---|
| public static ValueExpression createValueExpression(String expression) Create a
| |
| createValueExpression | back to summary |
|---|---|
| public static ValueExpression createValueExpression(String expression, Class<?> expectedType) | |
| evaluateValueExpression | back to summary |
|---|---|
| public static Object evaluateValueExpression(ValueExpression expression, ELContext elContext) | |
| getDefaultExpressionFactory | back to summary |
|---|---|
| public static ExpressionFactory getDefaultExpressionFactory(FacesContext facesContext) | |
| getDefaultExpressionFactory | back to summary |
|---|---|
| public static ExpressionFactory getDefaultExpressionFactory(ApplicationAssociate associate, FacesContext facesContext) | |
| getDelegatePR | back to summary |
|---|---|
| public static PropertyResolver getDelegatePR(ApplicationAssociate associate, boolean provideDefault)
Deprecated as a consequence of
| |
| getDelegateVR | back to summary |
|---|---|
| public static VariableResolver getDelegateVR(ApplicationAssociate associate, boolean provideDefault)
Deprecated as a consequence of
| |
| getExpressionsFromString | back to summary |
|---|---|
public static List
| |
| getFirstSegmentIndex | back to summary |
|---|---|
| private static int getFirstSegmentIndex(String valueBinding) The the first segment of a String tokenized by a "." or "["
| |
| getNarrowestScopeFromExpression | back to summary |
|---|---|
public static ELUtils.
| |
| getScope | back to summary |
|---|---|
| public static ELUtils. This method is used by the ManagedBeanFactory to ensure that properties set by an expression point to an object with an accepted lifespan. get the scope of the expression. Return For example, the expression:
| |
| getScope | back to summary |
|---|---|
| public static ELUtils. | |
| getScopeForExpression | back to summary |
|---|---|
| public static ELUtils. | |
| getScopeForSingleExpression | back to summary |
|---|---|
public static ELUtils.
| |
| hasValidLifespan | back to summary |
|---|---|
public static boolean hasValidLifespan(ELUtils.
| |
| isCompositeComponentExpr | back to summary |
|---|---|
| public static boolean isCompositeComponentExpr(String expression) | |
| isCompositeComponentLookupWithArgs | back to summary |
|---|---|
| public static boolean isCompositeComponentLookupWithArgs(String expression) | |
| isCompositeComponentMethodExprLookup | back to summary |
|---|---|
| public static boolean isCompositeComponentMethodExprLookup(String expression) | |
| isScopeValid | back to summary |
|---|---|
| public static boolean isScopeValid(String scopeName) | |
| stripBracketsIfNecessary | back to summary |
|---|---|
private static String stripBracketsIfNecessary(String expression) throws ReferenceSyntaxException
| |
| tryAddCDIELResolver | back to summary |
|---|---|
| private static boolean tryAddCDIELResolver(FacesCompositeELResolver composite) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final ELUtils. | |
| public static final ELUtils. | |
| public static final ELUtils. | |
| pack-priv String | |
| public static final ELUtils. | |
| public static final ELUtils. |
| Modifier and Type | Method and Description |
|---|---|
| public String | toString()
Overrides java. |
| public static ELUtils. | |
| public static ELUtils. |
| APPLICATION | back to summary |
|---|---|
| public static final ELUtils. | |
| NONE | back to summary |
|---|---|
| public static final ELUtils. | |
| REQUEST | back to summary |
|---|---|
| public static final ELUtils. | |
| scope | back to summary |
|---|---|
| pack-priv String scope | |
| SESSION | back to summary |
|---|---|
| public static final ELUtils. | |
| VIEW | back to summary |
|---|---|
| public static final ELUtils. | |
| Scope | back to summary |
|---|---|
| private Scope(String scope) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists. | |
| valueOf | back to summary |
|---|---|
| public static ELUtils. | |
| values | back to summary |
|---|---|
| public static ELUtils. | |