Package org.jdesktop.el.impl.util
Class ReflectionUtil
java.lang.Object
org.jdesktop.el.impl.util.ReflectionUtil
Utilities for Managing Serialization and Reflection
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Classprotected static ClassforNamePrimitive(String name) static MethodReturns a method based on the criteriastatic PropertyDescriptorgetPropertyDescriptor(Object base, Object property) protected static final StringparamString(Class[] types) 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:
- Throws:
ClassNotFoundException
-
toTypeNameArray
Converts an array of Class types to Class names- Parameters:
c-- Returns:
-
getMethod
public static Method getMethod(Object base, Object property, Class[] paramTypes) throws MethodNotFoundException Returns a method based on the criteria- Parameters:
base- the object that owns the methodproperty- the name of the methodparamTypes- the parameter types to use- Returns:
- the method specified
- Throws:
MethodNotFoundException
-
paramString
-
getPropertyDescriptor
public static PropertyDescriptor getPropertyDescriptor(Object base, Object property) throws ELException, PropertyNotFoundException - Parameters:
base-property-- Returns:
- Throws:
ELExceptionPropertyNotFoundException
-