Class ReflectionUtil
java.lang.Object
com.sun.el.util.ReflectionUtil
Utilities for Managing Serialization and Reflection
- Version:
- $Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: kchung $
- Author:
- Jacob Hookom [jacob@hookom.net]
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic MethodfindMethod(Class<?> clazz, String methodName, Class<?>[] paramTypes, Object[] paramValues) static Classprotected static ClassforNamePrimitive(String name) static PropertyDescriptorgetPropertyDescriptor(Object base, Object property) static ObjectinvokeMethod(javax.el.ELContext context, Method m, Object base, Object[] params) static Class[]toTypeArray(String[] s) Converts an array of Class names to Class typesstatic String[]toTypeNameArray(Class[] c) Converts an array of Class types to Class names
-
Field Details
-
EMPTY_STRING
-
PRIMITIVE_NAMES
-
PRIMITIVES
-
-
Method Details
-
forName
- Throws:
ClassNotFoundException
-
forNamePrimitive
-
toTypeArray
Converts an array of Class names to Class types- Parameters:
s-- Returns:
- The array of Classes
- Throws:
ClassNotFoundException
-
toTypeNameArray
-
getPropertyDescriptor
public static PropertyDescriptor getPropertyDescriptor(Object base, Object property) throws javax.el.ELException, javax.el.PropertyNotFoundException - Parameters:
base- The base objectproperty- The property- Returns:
- The PropertyDescriptor for the base with the given property
- Throws:
javax.el.ELExceptionjavax.el.PropertyNotFoundException
-
invokeMethod
-
findMethod
-