Package javax.el
Class ELUtil
java.lang.Object
javax.el.ELUtil
Utility methods for this portion of the Jakarta Expression Language implementation
Methods on this class use a Map instance stored in ThreadLocal storage to minimize the performance impact on operations that take place multiple times on a single Thread. The keys and values of the Map are implementation private.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static classprivate static class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic ExpressionFactoryprivate static ThreadLocal<Map<String, ResourceBundle>> TheThreadLocalvariable used to record thejavax.faces.context.FacesContextinstance for each processing thread. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static Object[]buildParameters(ELContext context, Class<?>[] parameterTypes, boolean isVarArgs, Object[] params) (package private) static Constructor<?> findConstructor(Class<?> klass, Class<?>[] paramTypes, Object[] params) (package private) static MethodfindMethod(Class<?> clazz, String methodName, Class<?>[] paramTypes, Object[] paramValues) (package private) static MethodfindMethod(Class<?> klass, String methodName, Class<?>[] paramTypes, Object[] params, boolean staticOnly) private static ELUtil.WrapperfindMostSpecificWrapper(List<ELUtil.Wrapper> candidates, Class<?>[] matchingTypes, boolean elSpecific, String errorMsg) private static ELUtil.WrapperfindWrapper(Class<?> clazz, List<ELUtil.Wrapper> wrappers, String name, Class<?>[] paramTypes, Object[] paramValues) private static Class<?> getBoxingTypeIfPrimitive(Class<?> clazz) private static Class<?>[]getComparingParamTypesForVarArgsMethod(Class<?>[] paramTypes, int length) (package private) static Constructor<?> getConstructor(Class<?> type, Constructor<?> c) private static Map<String, ResourceBundle> static StringgetExceptionMessageString(ELContext context, String messageId) Convenience method, calls through to getExceptionMessageString(ELContext,java.lang.String,Object []).static StringgetExceptionMessageString(ELContext context, String messageId, Object[] params) (package private) static ExpressionFactory(package private) static Methodprivate static Class<?>[]getTypesFromValues(Object[] values) (package private) static ObjectinvokeConstructor(ELContext context, Constructor<?> constructor, Object[] params) (package private) static ObjectinvokeMethod(ELContext context, Method method, Object base, Object[] params) (package private) static booleanisAssignableFrom(Class<?> src, Class<?> target) private static booleanisCoercibleFrom(Object src, Class<?> target) private static intisMoreSpecific(Class<?> type1, Class<?> type2, Class<?> matchingType, boolean elSpecific) private static intisMoreSpecific(ELUtil.Wrapper wrapper1, ELUtil.Wrapper wrapper2, Class<?>[] matchingTypes, boolean elSpecific) private static final StringparamString(Class<?>[] types) private static voidsetCurrentInstance(Map<String, ResourceBundle> context) Replace the Map with the argument context.
-
Field Details
-
exprFactory
-
instance
The
ThreadLocalvariable used to record thejavax.faces.context.FacesContextinstance for each processing thread.
-
-
Constructor Details
-
ELUtil
private ELUtil()This class may not be constructed.
-
-
Method Details
-
getCurrentInstance
- Returns:
- a Map stored in ThreadLocal storage. This may be used by methods of this class to minimize the performance impact for operations that may take place multiple times on a given Thread instance.
-
setCurrentInstance
Replace the Map with the argument context.- Parameters:
context- the Map to be stored in ThreadLocal storage.
-
getExceptionMessageString
Convenience method, calls through to getExceptionMessageString(ELContext,java.lang.String,Object []).- Parameters:
context- the ELContext from which the Locale for this message is extracted.messageId- the messageId String in the ResourceBundle- Returns:
- a localized String for the argument messageId
-
getExceptionMessageString
-
getExpressionFactory
-
findConstructor
-
invokeConstructor
-
findMethod
-
invokeMethod
-
findMethod
-
findWrapper
private static ELUtil.Wrapper findWrapper(Class<?> clazz, List<ELUtil.Wrapper> wrappers, String name, Class<?>[] paramTypes, Object[] paramValues) -
findMostSpecificWrapper
private static ELUtil.Wrapper findMostSpecificWrapper(List<ELUtil.Wrapper> candidates, Class<?>[] matchingTypes, boolean elSpecific, String errorMsg) -
isMoreSpecific
private static int isMoreSpecific(ELUtil.Wrapper wrapper1, ELUtil.Wrapper wrapper2, Class<?>[] matchingTypes, boolean elSpecific) -
isMoreSpecific
-
getBoxingTypeIfPrimitive
-
getComparingParamTypesForVarArgsMethod
-
paramString
-
isAssignableFrom
-
isCoercibleFrom
-
getTypesFromValues
-
getMethod
-
getConstructor
-
buildParameters
-