|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.struts2.el.util.ReflectionUtil
public class ReflectionUtil
Utilities for Managing Serialization and Reflection
| Field Summary | |
|---|---|
protected static String[] |
EMPTY_STRING
|
protected static String[] |
PRIMITIVE_NAMES
|
protected static Class[] |
PRIMITIVES
|
| Method Summary | |
|---|---|
static Class |
forName(String name)
|
protected static Class |
forNamePrimitive(String name)
|
static Method |
getMethod(Object base,
Object property,
Class[] paramTypes)
Returns a method based on the criteria |
static PropertyDescriptor |
getPropertyDescriptor(Object base,
Object property)
|
protected static String |
paramString(Class[] types)
|
static Class[] |
toTypeArray(String[] s)
Converts an array of Class names to Class types |
static String[] |
toTypeNameArray(Class[] c)
Converts an array of Class types to Class names |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String[] EMPTY_STRING
protected static final String[] PRIMITIVE_NAMES
protected static final Class[] PRIMITIVES
| Method Detail |
|---|
public static Class forName(String name)
throws ClassNotFoundException
ClassNotFoundExceptionprotected static Class forNamePrimitive(String name)
public static Class[] toTypeArray(String[] s)
throws ClassNotFoundException
s -
ClassNotFoundExceptionpublic static String[] toTypeNameArray(Class[] c)
c -
public static Method getMethod(Object base,
Object property,
Class[] paramTypes)
throws javax.el.MethodNotFoundException
base - the object that owns the methodproperty - the name of the methodparamTypes - the parameter types to use
javax.el.MethodNotFoundExceptionprotected static final String paramString(Class[] types)
public static PropertyDescriptor getPropertyDescriptor(Object base,
Object property)
throws javax.el.ELException,
javax.el.PropertyNotFoundException
base - property -
javax.el.ELException
javax.el.PropertyNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||