|
Apache Tomcat 7.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.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
ClassNotFoundException
protected static Class<?> forNamePrimitive(String name)
public static Class<?>[] toTypeArray(String[] s) throws ClassNotFoundException
s
-
ClassNotFoundException
public static String[] toTypeNameArray(Class<?>[] c)
c
- public static Method getMethod(Object base, Object property, Class<?>[] paramTypes) throws MethodNotFoundException
base
- the object that owns the methodproperty
- the name of the methodparamTypes
- the parameter types to use
MethodNotFoundException
protected static final String paramString(Class<?>[] types)
public static PropertyDescriptor getPropertyDescriptor(Object base, Object property) throws ELException, PropertyNotFoundException
ELException
PropertyNotFoundException
|
Apache Tomcat 7.0.4 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |