com.googlecode.autoandroid.positron
Class ReflectionUtils

java.lang.Object
  extended by com.googlecode.autoandroid.positron.ReflectionUtils

public class ReflectionUtils
extends Object


Constructor Summary
ReflectionUtils()
           
 
Method Summary
static Class<?> forName(String className)
           
static Field getField(Class<?> target, String property)
           
static Method getMethod(Class<?> target, String name, Class<?>... args)
           
static Method getMethod(Class<?> target, String name, int parameterCount)
           
static String getName(Class<?> clazz, int id)
           
static Object getter(Object target, String property)
          Find and call a getter method for the named property.
static Object invoke(Method method, Object target, Object... args)
           
static Class<?> rId(String pkg)
           
static int rId(String pkg, String id)
           
static Class<?> rRaw(String pkg)
           
static int rRaw(String pkg, String id)
           
static String rRawName(String targetPackage, int id)
           
static int staticInt(Class<?> target, String staticProperty)
           
static List<String> staticIntFields(Class<?> target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectionUtils

public ReflectionUtils()
Method Detail

rRawName

public static String rRawName(String targetPackage,
                              int id)

getName

public static String getName(Class<?> clazz,
                             int id)

rRaw

public static Class<?> rRaw(String pkg)

rRaw

public static int rRaw(String pkg,
                       String id)

rId

public static Class<?> rId(String pkg)

rId

public static int rId(String pkg,
                      String id)

forName

public static Class<?> forName(String className)

getter

public static Object getter(Object target,
                            String property)
Find and call a getter method for the named property.


getMethod

public static Method getMethod(Class<?> target,
                               String name,
                               Class<?>... args)

invoke

public static Object invoke(Method method,
                            Object target,
                            Object... args)

getField

public static Field getField(Class<?> target,
                             String property)

staticInt

public static int staticInt(Class<?> target,
                            String staticProperty)

staticIntFields

public static List<String> staticIntFields(Class<?> target)

getMethod

public static Method getMethod(Class<?> target,
                               String name,
                               int parameterCount)