Package org.jdesktop.el.impl.util
Class ReflectionUtil
- java.lang.Object
-
- org.jdesktop.el.impl.util.ReflectionUtil
-
public class ReflectionUtil extends Object
Utilities for Managing Serialization and Reflection- Version:
- $Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: spuhl $
- Author:
- Jacob Hookom [jacob@hookom.net]
-
-
Field Summary
Fields Modifier and Type Field Description protected static String[]EMPTY_STRINGprotected static String[]PRIMITIVE_NAMESprotected static Class[]PRIMITIVES
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClassforName(String name)protected static ClassforNamePrimitive(String name)static MethodgetMethod(Object base, Object property, Class[] paramTypes)Returns a method based on the criteriastatic PropertyDescriptorgetPropertyDescriptor(Object base, Object property)protected static 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
-
-
-
Method Detail
-
forName
public static Class forName(String name) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
toTypeArray
public static Class[] toTypeArray(String[] s) throws ClassNotFoundException
Converts an array of Class names to Class types- Parameters:
s-- Returns:
- Throws:
ClassNotFoundException
-
toTypeNameArray
public static String[] toTypeNameArray(Class[] c)
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
-
getPropertyDescriptor
public static PropertyDescriptor getPropertyDescriptor(Object base, Object property) throws ELException, PropertyNotFoundException
- Parameters:
base-property-- Returns:
- Throws:
ELExceptionPropertyNotFoundException
-
-