org.apache.el.util
public class ReflectionUtil extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String[] |
EMPTY_STRING |
protected static java.lang.String[] |
PRIMITIVE_NAMES |
protected static java.lang.Class[] |
PRIMITIVES |
Modifier and Type | Method and Description |
---|---|
static java.lang.Class |
forName(java.lang.String name) |
protected static java.lang.Class |
forNamePrimitive(java.lang.String name) |
static java.lang.reflect.Method |
getMethod(java.lang.Object base,
java.lang.Object property,
java.lang.Class[] paramTypes)
Returns a method based on the criteria
|
static java.beans.PropertyDescriptor |
getPropertyDescriptor(java.lang.Object base,
java.lang.Object property) |
protected static java.lang.String |
paramString(java.lang.Class[] types) |
static java.lang.Class[] |
toTypeArray(java.lang.String[] s)
Converts an array of Class names to Class types
|
static java.lang.String[] |
toTypeNameArray(java.lang.Class[] c)
Converts an array of Class types to Class names
|
protected static final java.lang.String[] EMPTY_STRING
protected static final java.lang.String[] PRIMITIVE_NAMES
protected static final java.lang.Class[] PRIMITIVES
public static java.lang.Class forName(java.lang.String name) throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
protected static java.lang.Class forNamePrimitive(java.lang.String name)
public static java.lang.Class[] toTypeArray(java.lang.String[] s) throws java.lang.ClassNotFoundException
s
- java.lang.ClassNotFoundException
public static java.lang.String[] toTypeNameArray(java.lang.Class[] c)
c
- public static java.lang.reflect.Method getMethod(java.lang.Object base, java.lang.Object property, java.lang.Class[] paramTypes) throws javax.el.MethodNotFoundException
base
- the object that owns the methodproperty
- the name of the methodparamTypes
- the parameter types to usejavax.el.MethodNotFoundException
protected static final java.lang.String paramString(java.lang.Class[] types)
public static java.beans.PropertyDescriptor getPropertyDescriptor(java.lang.Object base, java.lang.Object property) throws javax.el.ELException, javax.el.PropertyNotFoundException
base
- property
- javax.el.ELException
javax.el.PropertyNotFoundException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.