com.triangularpixels.rebirth.resources
Class ReflectionUtil
java.lang.Object
com.triangularpixels.rebirth.resources.ReflectionUtil
public class ReflectionUtil
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReflectionUtil
public ReflectionUtil()
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.