Module com.sun.el

Class ReflectionUtil


  • public class ReflectionUtil
    extends Object
    Utilities for Managing Serialization and Reflection
    Version:
    $Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: kchung $
    Author:
    Jacob Hookom [jacob@hookom.net]
    • Field Detail

      • EMPTY_STRING

        protected static final String[] EMPTY_STRING
      • PRIMITIVE_NAMES

        protected static final String[] PRIMITIVE_NAMES
      • PRIMITIVES

        protected static final Class[] PRIMITIVES
    • Method Detail

      • forNamePrimitive

        protected static Class forNamePrimitive​(String name)
      • toTypeNameArray

        public static String[] toTypeNameArray​(Class[] c)
        Converts an array of Class types to Class names
        Parameters:
        c -
        Returns:
        The array of Classes
      • getPropertyDescriptor

        public static PropertyDescriptor getPropertyDescriptor​(Object base,
                                                               Object property)
                                                        throws jakarta.el.ELException,
                                                               jakarta.el.PropertyNotFoundException
        Parameters:
        base - The base object
        property - The property
        Returns:
        The PropertyDescriptor for the base with the given property
        Throws:
        jakarta.el.ELException
        jakarta.el.PropertyNotFoundException
      • invokeMethod

        public static Object invokeMethod​(jakarta.el.ELContext context,
                                          Method m,
                                          Object base,
                                          Object[] params)