com.sun.el.util
类 ReflectionUtil

java.lang.Object
  继承者 com.sun.el.util.ReflectionUtil

public class ReflectionUtil
extends Object

Utilities for Managing Serialization and Reflection

版本:
$Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: hmalphett $
作者:
Jacob Hookom [jacob@hookom.net]

字段摘要
protected static String[] EMPTY_STRING
           
protected static String[] PRIMITIVE_NAMES
           
protected static Class[] PRIMITIVES
           
 
方法摘要
static Method findMethod(Object base, Object property, Object[] params)
           
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)
           
static Object invokeMethod(Object base, Object property, Object[] params)
          Invoke a method with parameters.
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
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

EMPTY_STRING

protected static final String[] EMPTY_STRING

PRIMITIVE_NAMES

protected static final String[] PRIMITIVE_NAMES

PRIMITIVES

protected static final Class[] PRIMITIVES
方法详细信息

forName

public static Class forName(String name)
                     throws ClassNotFoundException
抛出:
ClassNotFoundException

forNamePrimitive

protected static Class forNamePrimitive(String name)

toTypeArray

public static Class[] toTypeArray(String[] s)
                           throws ClassNotFoundException
Converts an array of Class names to Class types

参数:
s -
返回:
抛出:
ClassNotFoundException

toTypeNameArray

public static String[] toTypeNameArray(Class[] c)
Converts an array of Class types to Class names

参数:
c -
返回:

getMethod

public static Method getMethod(Object base,
                               Object property,
                               Class[] paramTypes)
                        throws MethodNotFoundException
Returns a method based on the criteria

参数:
base - the object that owns the method
property - the name of the method
paramTypes - the parameter types to use
返回:
the method specified
抛出:
MethodNotFoundException

paramString

protected static final String paramString(Class[] types)

getPropertyDescriptor

public static PropertyDescriptor getPropertyDescriptor(Object base,
                                                       Object property)
                                                throws ELException,
                                                       PropertyNotFoundException
参数:
base -
property -
返回:
抛出:
ELException
PropertyNotFoundException

findMethod

public static Method findMethod(Object base,
                                Object property,
                                Object[] params)
                         throws ELException
抛出:
ELException

invokeMethod

public static Object invokeMethod(Object base,
                                  Object property,
                                  Object[] params)
                           throws ELException
Invoke a method with parameters.

抛出:
ELException


Copyright © 2013. All Rights Reserved.