joeq.Runtime
Class BasicReflectionImpl

java.lang.Object
  extended by joeq.Runtime.BasicReflectionImpl

public class BasicReflectionImpl
extends Object

Version:
$Id: BasicReflectionImpl.java 2218 2005-03-14 22:14:51Z joewhaley $
Author:
John Whaley

Field Summary
static jq_Class _class
           
static jq_StaticField _declaredFieldsCache
           
static boolean REPORT_JDK_ERRORS
           
 boolean USE_DECLARED_FIELDS_CACHE
           
 
Constructor Summary
BasicReflectionImpl()
           
 
Method Summary
 int arraylength(Object o)
           
 Object arrayload_A(Object[] o, int i)
           
 Address arrayload_R(Address[] o, int i)
           
 Object getfield_A(Object o, jq_InstanceField f)
           
 byte getfield_B(Object o, jq_InstanceField f)
           
 char getfield_C(Object o, jq_InstanceField f)
           
 double getfield_D(Object o, jq_InstanceField f)
           
 float getfield_F(Object o, jq_InstanceField f)
           
 int getfield_I(Object o, jq_InstanceField f)
           
 long getfield_L(Object o, jq_InstanceField f)
           
 Address getfield_P(Object o, jq_InstanceField f)
           
 short getfield_S(Object o, jq_InstanceField f)
           
 boolean getfield_Z(Object o, jq_InstanceField f)
           
 Object getfield(Object o, jq_InstanceField f)
           
 Constructor getJDKConstructor(Class c, Class[] args)
           
 Field getJDKField(Class c, String name)
           
 Member getJDKMember(jq_Member m)
           
 Method getJDKMethod(Class c, String name, Class[] args)
           
 Class getJDKType(jq_Primitive c)
           
 Class getJDKType(jq_Reference c)
           
 Class getJDKType(jq_Type c)
           
 jq_Initializer getJQMember(Constructor f)
           
 jq_Field getJQMember(Field f)
           
 jq_Method getJQMember(Method f)
           
 jq_Type getJQType(Class c)
           
 Object getstatic_A(jq_StaticField f)
           
 byte getstatic_B(jq_StaticField f)
           
 char getstatic_C(jq_StaticField f)
           
 double getstatic_D(jq_StaticField f)
           
 float getstatic_F(jq_StaticField f)
           
 int getstatic_I(jq_StaticField f)
           
 long getstatic_L(jq_StaticField f)
           
 Address getstatic_P(jq_StaticField f)
           
 short getstatic_S(jq_StaticField f)
           
 boolean getstatic_Z(jq_StaticField f)
           
 jq_Reference getTypeOf(Object o)
           
 void initialize()
           
 long invoke(jq_Method m, Object dis, Object[] args)
           
 Address invokeA(jq_Method m, Object dis, Object[] args)
           
 Object invokeinstance_A(jq_InstanceMethod m, Object dis)
           
 Object invokeinstance_A(jq_InstanceMethod m, Object dis, Object arg1)
           
 void invokeinstance_V(jq_InstanceMethod m, Object dis)
           
 void invokeinstance_V(jq_InstanceMethod m, Object dis, Object arg1)
           
 void invokeinstance_V(jq_InstanceMethod m, Object dis, Object arg1, int arg2, long arg3, int arg4)
           
 void invokeinstance_V(jq_InstanceMethod m, Object dis, Object arg1, Object arg2)
           
 void invokeinstance_V(jq_InstanceMethod m, Object dis, Object arg1, Object arg2, Object arg3)
           
 void invokeinstance_V(jq_InstanceMethod m, Object dis, Object arg1, Object arg2, Object arg3, long arg4)
           
 boolean invokeinstance_Z(jq_InstanceMethod m, Object dis, Object arg1)
           
 Object invokestatic_A(jq_StaticMethod m)
           
 int invokestatic_I(jq_StaticMethod m)
           
 long invokestatic_J(jq_StaticMethod m)
           
 void invokestatic_V(jq_StaticMethod m)
           
 void invokestatic_V(jq_StaticMethod m, Object arg1)
           
 void putfield_A(Object o, jq_InstanceField f, Object v)
           
 void putfield_B(Object o, jq_InstanceField f, byte v)
           
 void putfield_C(Object o, jq_InstanceField f, char v)
           
 void putfield_D(Object o, jq_InstanceField f, double v)
           
 void putfield_F(Object o, jq_InstanceField f, float v)
           
 void putfield_I(Object o, jq_InstanceField f, int v)
           
 void putfield_L(Object o, jq_InstanceField f, long v)
           
 void putfield_P(Object o, jq_InstanceField f, Address v)
           
 void putfield_S(Object o, jq_InstanceField f, short v)
           
 void putfield_Z(Object o, jq_InstanceField f, boolean v)
           
 void putstatic_A(jq_StaticField f, Object v)
           
 void putstatic_B(jq_StaticField f, byte v)
           
 void putstatic_C(jq_StaticField f, char v)
           
 void putstatic_D(jq_StaticField f, double v)
           
 void putstatic_F(jq_StaticField f, float v)
           
 void putstatic_I(jq_StaticField f, int v)
           
 void putstatic_L(jq_StaticField f, long v)
           
 void putstatic_P(jq_StaticField f, Address v)
           
 void putstatic_S(jq_StaticField f, short v)
           
 void putstatic_Z(jq_StaticField f, boolean v)
           
 void registerNullStaticFields(Set s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REPORT_JDK_ERRORS

public static boolean REPORT_JDK_ERRORS

USE_DECLARED_FIELDS_CACHE

public boolean USE_DECLARED_FIELDS_CACHE

_class

public static jq_Class _class

_declaredFieldsCache

public static jq_StaticField _declaredFieldsCache
Constructor Detail

BasicReflectionImpl

public BasicReflectionImpl()
Method Detail

getTypeOf

public final jq_Reference getTypeOf(Object o)

getJQType

public final jq_Type getJQType(Class c)

getJDKType

public final Class getJDKType(jq_Type c)

getJDKType

public final Class getJDKType(jq_Primitive c)

getJDKType

public Class getJDKType(jq_Reference c)

getJQMember

public final jq_Field getJQMember(Field f)

getJQMember

public final jq_Method getJQMember(Method f)

getJQMember

public final jq_Initializer getJQMember(Constructor f)

getJDKField

public final Field getJDKField(Class c,
                               String name)

getJDKMethod

public final Method getJDKMethod(Class c,
                                 String name,
                                 Class[] args)

getJDKConstructor

public final Constructor getJDKConstructor(Class c,
                                           Class[] args)

getJDKMember

public final Member getJDKMember(jq_Member m)

invokestatic_V

public void invokestatic_V(jq_StaticMethod m)
                    throws Throwable
Throws:
Throwable

invokestatic_I

public int invokestatic_I(jq_StaticMethod m)
                   throws Throwable
Throws:
Throwable

invokestatic_A

public Object invokestatic_A(jq_StaticMethod m)
                      throws Throwable
Throws:
Throwable

invokestatic_J

public long invokestatic_J(jq_StaticMethod m)
                    throws Throwable
Throws:
Throwable

invokestatic_V

public void invokestatic_V(jq_StaticMethod m,
                           Object arg1)
                    throws Throwable
Throws:
Throwable

invokeinstance_V

public void invokeinstance_V(jq_InstanceMethod m,
                             Object dis)
                      throws Throwable
Throws:
Throwable

invokeinstance_A

public Object invokeinstance_A(jq_InstanceMethod m,
                               Object dis)
                        throws Throwable
Throws:
Throwable

invokeinstance_V

public void invokeinstance_V(jq_InstanceMethod m,
                             Object dis,
                             Object arg1)
                      throws Throwable
Throws:
Throwable

invokeinstance_A

public Object invokeinstance_A(jq_InstanceMethod m,
                               Object dis,
                               Object arg1)
                        throws Throwable
Throws:
Throwable

invokeinstance_Z

public boolean invokeinstance_Z(jq_InstanceMethod m,
                                Object dis,
                                Object arg1)
                         throws Throwable
Throws:
Throwable

invokeinstance_V

public void invokeinstance_V(jq_InstanceMethod m,
                             Object dis,
                             Object arg1,
                             Object arg2)
                      throws Throwable
Throws:
Throwable

invokeinstance_V

public void invokeinstance_V(jq_InstanceMethod m,
                             Object dis,
                             Object arg1,
                             Object arg2,
                             Object arg3)
                      throws Throwable
Throws:
Throwable

invokeinstance_V

public void invokeinstance_V(jq_InstanceMethod m,
                             Object dis,
                             Object arg1,
                             Object arg2,
                             Object arg3,
                             long arg4)
                      throws Throwable
Throws:
Throwable

invokeinstance_V

public void invokeinstance_V(jq_InstanceMethod m,
                             Object dis,
                             Object arg1,
                             int arg2,
                             long arg3,
                             int arg4)
                      throws Throwable
Throws:
Throwable

invoke

public long invoke(jq_Method m,
                   Object dis,
                   Object[] args)
            throws IllegalArgumentException,
                   InvocationTargetException
Throws:
IllegalArgumentException
InvocationTargetException

invokeA

public Address invokeA(jq_Method m,
                       Object dis,
                       Object[] args)
                throws IllegalArgumentException,
                       InvocationTargetException
Throws:
IllegalArgumentException
InvocationTargetException

getfield_I

public int getfield_I(Object o,
                      jq_InstanceField f)

getfield_L

public long getfield_L(Object o,
                       jq_InstanceField f)

getfield_F

public float getfield_F(Object o,
                        jq_InstanceField f)

getfield_D

public double getfield_D(Object o,
                         jq_InstanceField f)

getfield_A

public Object getfield_A(Object o,
                         jq_InstanceField f)

getfield_P

public Address getfield_P(Object o,
                          jq_InstanceField f)

getfield_B

public byte getfield_B(Object o,
                       jq_InstanceField f)

getfield_C

public char getfield_C(Object o,
                       jq_InstanceField f)

getfield_S

public short getfield_S(Object o,
                        jq_InstanceField f)

getfield_Z

public boolean getfield_Z(Object o,
                          jq_InstanceField f)

getfield

public Object getfield(Object o,
                       jq_InstanceField f)

putfield_I

public void putfield_I(Object o,
                       jq_InstanceField f,
                       int v)

putfield_L

public void putfield_L(Object o,
                       jq_InstanceField f,
                       long v)

putfield_F

public void putfield_F(Object o,
                       jq_InstanceField f,
                       float v)

putfield_D

public void putfield_D(Object o,
                       jq_InstanceField f,
                       double v)

putfield_A

public void putfield_A(Object o,
                       jq_InstanceField f,
                       Object v)

putfield_P

public void putfield_P(Object o,
                       jq_InstanceField f,
                       Address v)

putfield_B

public void putfield_B(Object o,
                       jq_InstanceField f,
                       byte v)

putfield_C

public void putfield_C(Object o,
                       jq_InstanceField f,
                       char v)

putfield_S

public void putfield_S(Object o,
                       jq_InstanceField f,
                       short v)

putfield_Z

public void putfield_Z(Object o,
                       jq_InstanceField f,
                       boolean v)

getstatic_I

public int getstatic_I(jq_StaticField f)

getstatic_L

public long getstatic_L(jq_StaticField f)

getstatic_F

public float getstatic_F(jq_StaticField f)

getstatic_D

public double getstatic_D(jq_StaticField f)

getstatic_A

public Object getstatic_A(jq_StaticField f)

getstatic_P

public Address getstatic_P(jq_StaticField f)

getstatic_Z

public boolean getstatic_Z(jq_StaticField f)

getstatic_B

public byte getstatic_B(jq_StaticField f)

getstatic_S

public short getstatic_S(jq_StaticField f)

getstatic_C

public char getstatic_C(jq_StaticField f)

putstatic_I

public void putstatic_I(jq_StaticField f,
                        int v)

putstatic_L

public void putstatic_L(jq_StaticField f,
                        long v)

putstatic_F

public void putstatic_F(jq_StaticField f,
                        float v)

putstatic_D

public void putstatic_D(jq_StaticField f,
                        double v)

putstatic_A

public void putstatic_A(jq_StaticField f,
                        Object v)

putstatic_P

public void putstatic_P(jq_StaticField f,
                        Address v)

putstatic_Z

public void putstatic_Z(jq_StaticField f,
                        boolean v)

putstatic_B

public void putstatic_B(jq_StaticField f,
                        byte v)

putstatic_S

public void putstatic_S(jq_StaticField f,
                        short v)

putstatic_C

public void putstatic_C(jq_StaticField f,
                        char v)

arraylength

public int arraylength(Object o)

arrayload_A

public Object arrayload_A(Object[] o,
                          int i)

arrayload_R

public Address arrayload_R(Address[] o,
                           int i)

registerNullStaticFields

public void registerNullStaticFields(Set s)

initialize

public void initialize()


Copyright © 2001-2008 John Whaley. All Rights Reserved.