Package org.jdesktop.el.impl.util
Class ReflectionUtil
- java.lang.Object
-
- org.jdesktop.el.impl.util.ReflectionUtil
-
public class ReflectionUtil extends java.lang.ObjectUtilities for Managing Serialization and Reflection
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String[]EMPTY_STRINGprotected static java.lang.String[]PRIMITIVE_NAMESprotected static java.lang.Class[]PRIMITIVES
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.ClassforName(java.lang.String name)protected static java.lang.ClassforNamePrimitive(java.lang.String name)static java.lang.reflect.MethodgetMethod(java.lang.Object base, java.lang.Object property, java.lang.Class[] paramTypes)Returns a method based on the criteriastatic java.beans.PropertyDescriptorgetPropertyDescriptor(java.lang.Object base, java.lang.Object property)protected static java.lang.StringparamString(java.lang.Class[] types)static java.lang.Class[]toTypeArray(java.lang.String[] s)Converts an array of Class names to Class typesstatic java.lang.String[]toTypeNameArray(java.lang.Class[] c)Converts an array of Class types to Class names
-
-
-
Method Detail
-
forName
public static java.lang.Class forName(java.lang.String name) throws java.lang.ClassNotFoundException- Throws:
java.lang.ClassNotFoundException
-
forNamePrimitive
protected static java.lang.Class forNamePrimitive(java.lang.String name)
-
toTypeArray
public static java.lang.Class[] toTypeArray(java.lang.String[] s) throws java.lang.ClassNotFoundExceptionConverts an array of Class names to Class types- Parameters:
s-- Returns:
- Throws:
java.lang.ClassNotFoundException
-
toTypeNameArray
public static java.lang.String[] toTypeNameArray(java.lang.Class[] c)
Converts an array of Class types to Class names- Parameters:
c-- Returns:
-
getMethod
public static java.lang.reflect.Method getMethod(java.lang.Object base, java.lang.Object property, java.lang.Class[] paramTypes) throws MethodNotFoundExceptionReturns 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
protected static final java.lang.String paramString(java.lang.Class[] types)
-
getPropertyDescriptor
public static java.beans.PropertyDescriptor getPropertyDescriptor(java.lang.Object base, java.lang.Object property) throws ELException, PropertyNotFoundException- Parameters:
base-property-- Returns:
- Throws:
ELExceptionPropertyNotFoundException
-
-