cpw.mods.fml.relauncher
Class ReflectionHelper
java.lang.Object
  
cpw.mods.fml.relauncher.ReflectionHelper
public class ReflectionHelper
- extends Object
 
Some reflection helper code.
- Author:
 
  - cpw
 
 
 
| 
Method Summary | 
static Field | 
findField(Class<?> clazz,
                   String... fieldNames)
 
            | 
static
 | 
findMethod(Class<? super E> clazz,
                     E instance,
                     String[] methodNames,
                     Class<?>... methodTypes)
 
            | 
static Class<? super Object> | 
getClass(ClassLoader loader,
                 String... classNames)
 
            | 
static
 | 
getPrivateValue(Class<? super E> classToAccess,
                               E instance,
                               int fieldIndex)
 
            | 
static
 | 
getPrivateValue(Class<? super E> classToAccess,
                               E instance,
                               String... fieldNames)
 
            | 
static
 | 
setPrivateValue(Class<? super T> classToAccess,
                               T instance,
                               E value,
                               int fieldIndex)
 
            | 
static
 | 
setPrivateValue(Class<? super T> classToAccess,
                               T instance,
                               E value,
                               String... fieldNames)
 
            | 
 
 
ReflectionHelper
public ReflectionHelper()
findField
public static Field findField(Class<?> clazz,
                              String... fieldNames)
 
getPrivateValue
public static <T,E> T getPrivateValue(Class<? super E> classToAccess,
                                      E instance,
                                      int fieldIndex)
 
getPrivateValue
public static <T,E> T getPrivateValue(Class<? super E> classToAccess,
                                      E instance,
                                      String... fieldNames)
 
setPrivateValue
public static <T,E> void setPrivateValue(Class<? super T> classToAccess,
                                         T instance,
                                         E value,
                                         int fieldIndex)
 
setPrivateValue
public static <T,E> void setPrivateValue(Class<? super T> classToAccess,
                                         T instance,
                                         E value,
                                         String... fieldNames)
 
getClass
public static Class<? super Object> getClass(ClassLoader loader,
                                             String... classNames)
 
findMethod
public static <E> Method findMethod(Class<? super E> clazz,
                                    E instance,
                                    String[] methodNames,
                                    Class<?>... methodTypes)