YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
cpw.mods.fml.relauncher.ReflectionHelper Class Reference

Classes

class  UnableToAccessFieldException
 
class  UnableToFindClassException
 
class  UnableToFindFieldException
 
class  UnableToFindMethodException
 

Static Public Member Functions

static Field findField (Class<?> clazz, String...fieldNames)
 
static< T, E > T getPrivateValue (Class<?super E > classToAccess, E instance, int fieldIndex)
 
static< T, E > T getPrivateValue (Class<?super E > classToAccess, E instance, String...fieldNames)
 
static< T, E > void setPrivateValue (Class<?super T > classToAccess, T instance, E value, int fieldIndex)
 
static< T, E > void setPrivateValue (Class<?super T > classToAccess, T instance, E value, String...fieldNames)
 
static Class<?super Object > getClass (ClassLoader loader, String...classNames)
 
static< E > Method findMethod (Class<?super E > clazz, E instance, String[] methodNames, Class<?>...methodTypes)
 

Detailed Description

Some reflection helper code.

Author
cpw

Member Function Documentation

static Field cpw.mods.fml.relauncher.ReflectionHelper.findField ( Class<?>  clazz,
String...  fieldNames 
)
static
static <E> Method cpw.mods.fml.relauncher.ReflectionHelper.findMethod ( Class<?super E >  clazz,
instance,
String[]  methodNames,
Class<?>...  methodTypes 
)
static
static Class<? super Object> cpw.mods.fml.relauncher.ReflectionHelper.getClass ( ClassLoader  loader,
String...  classNames 
)
static
static <T,E> T cpw.mods.fml.relauncher.ReflectionHelper.getPrivateValue ( Class<?super E >  classToAccess,
instance,
int  fieldIndex 
)
static
static <T,E> T cpw.mods.fml.relauncher.ReflectionHelper.getPrivateValue ( Class<?super E >  classToAccess,
instance,
String...  fieldNames 
)
static
static <T,E> void cpw.mods.fml.relauncher.ReflectionHelper.setPrivateValue ( Class<?super T >  classToAccess,
instance,
value,
int  fieldIndex 
)
static
static <T,E> void cpw.mods.fml.relauncher.ReflectionHelper.setPrivateValue ( Class<?super T >  classToAccess,
instance,
value,
String...  fieldNames 
)
static

The documentation for this class was generated from the following file: