com.triangularpixels.rebirth.resources
Class ReflectionUtil

java.lang.Object
  extended by com.triangularpixels.rebirth.resources.ReflectionUtil

public class ReflectionUtil
extends Object


Constructor Summary
ReflectionUtil()
           
 
Method Summary
static Class<?> findWrapperClassForPrimitive(Class<?> primitiveClass)
           
static Class<?> findWrapperClassForPrimitiveArray(Class<?> primitiveArrayClass)
           
static Field[] getAllDeclaredFields(Object object, boolean publicOnly)
          'publicOnly' just gets public fields (Class.getFields vs.
static Method getAttributeDecoder(Class<?> clazz)
           
static Method getElementDecoder(Class<?> clazz)
           
static Method getObjectAttributeDecoder(Class<?> clazz)
           
static Method getObjectElementDecoder(Class<?> clazz)
           
static boolean isAttributeDecoder(Class<?> clazz)
           
static boolean isElementDecoder(Class<?> clazz)
           
static void shallowCopy(Object source, Object dest, boolean publicOnly)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectionUtil

public ReflectionUtil()
Method Detail

findWrapperClassForPrimitive

public static Class<?> findWrapperClassForPrimitive(Class<?> primitiveClass)

findWrapperClassForPrimitiveArray

public static Class<?> findWrapperClassForPrimitiveArray(Class<?> primitiveArrayClass)

isAttributeDecoder

public static boolean isAttributeDecoder(Class<?> clazz)

getAttributeDecoder

public static Method getAttributeDecoder(Class<?> clazz)

getObjectAttributeDecoder

public static Method getObjectAttributeDecoder(Class<?> clazz)

isElementDecoder

public static boolean isElementDecoder(Class<?> clazz)

getElementDecoder

public static Method getElementDecoder(Class<?> clazz)

getObjectElementDecoder

public static Method getObjectElementDecoder(Class<?> clazz)

shallowCopy

public static void shallowCopy(Object source,
                               Object dest,
                               boolean publicOnly)

getAllDeclaredFields

public static Field[] getAllDeclaredFields(Object object,
                                           boolean publicOnly)
'publicOnly' just gets public fields (Class.getFields vs. Class.getDeclaredFields) so we can work with reduced functionality in a sandboxed environment (ie. applets)



Copyright © 2009 TriangularPixels.com. All Rights Reserved.