org.apache.el.util

Class ReflectionUtil

public class ReflectionUtil extends Object

Utilities for Managing Serialization and Reflection

Version: $Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: markt $

Author: Jacob Hookom [jacob@hookom.net]

Field Summary
protected static String[]EMPTY_STRING
protected static Class[]PRIMITIVES
protected static String[]PRIMITIVE_NAMES
Method Summary
static ClassforName(String name)
protected static ClassforNamePrimitive(String name)
static MethodgetMethod(Object base, Object property, Class[] paramTypes)
Returns a method based on the criteria
static PropertyDescriptorgetPropertyDescriptor(Object base, Object property)
protected static StringparamString(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

Field Detail

EMPTY_STRING

protected static final String[] EMPTY_STRING

PRIMITIVES

protected static final Class[] PRIMITIVES

PRIMITIVE_NAMES

protected static final String[] PRIMITIVE_NAMES

Method Detail

forName

public static Class forName(String name)

forNamePrimitive

protected static Class forNamePrimitive(String name)

getMethod

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

Parameters: base the object that owns the method property the name of the method paramTypes the parameter types to use

Returns: the method specified

Throws: MethodNotFoundException

getPropertyDescriptor

public static PropertyDescriptor getPropertyDescriptor(Object base, Object property)

Parameters: base property

Returns:

Throws: ELException PropertyNotFoundException

paramString

protected static final String paramString(Class[] types)

toTypeArray

public static Class[] toTypeArray(String[] s)
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:

Copyright © 2000-2011 Apache Software Foundation. All Rights Reserved.