java.lang.reflect
Class ReflectAccess

java.lang.Object
  extended byjava.lang.reflect.ReflectAccess
All Implemented Interfaces:
sun.reflect.LangReflectAccess

class ReflectAccess
extends Object
implements sun.reflect.LangReflectAccess

Package-private class implementing the sun.reflect.LangReflectAccess interface, allowing the java.lang package to instantiate objects in this package.


Constructor Summary
(package private) ReflectAccess()
           
 
Method Summary
 Constructor copyConstructor(Constructor arg)
           
 Field copyField(Field arg)
           
 Method copyMethod(Method arg)
           
 sun.reflect.ConstructorAccessor getConstructorAccessor(Constructor c)
           
 int getConstructorSlot(Constructor c)
           
 sun.reflect.MethodAccessor getMethodAccessor(Method m)
           
 Constructor newConstructor(Class declaringClass, Class[] parameterTypes, Class[] checkedExceptions, int modifiers, int slot)
           
 Field newField(Class declaringClass, String name, Class type, int modifiers, int slot)
           
 Method newMethod(Class declaringClass, String name, Class[] parameterTypes, Class returnType, Class[] checkedExceptions, int modifiers, int slot)
           
 void setConstructorAccessor(Constructor c, sun.reflect.ConstructorAccessor accessor)
           
 void setMethodAccessor(Method m, sun.reflect.MethodAccessor accessor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectAccess

ReflectAccess()
Method Detail

newField

public Field newField(Class declaringClass,
                      String name,
                      Class type,
                      int modifiers,
                      int slot)
Specified by:
newField in interface sun.reflect.LangReflectAccess

newMethod

public Method newMethod(Class declaringClass,
                        String name,
                        Class[] parameterTypes,
                        Class returnType,
                        Class[] checkedExceptions,
                        int modifiers,
                        int slot)
Specified by:
newMethod in interface sun.reflect.LangReflectAccess

newConstructor

public Constructor newConstructor(Class declaringClass,
                                  Class[] parameterTypes,
                                  Class[] checkedExceptions,
                                  int modifiers,
                                  int slot)
Specified by:
newConstructor in interface sun.reflect.LangReflectAccess

getMethodAccessor

public sun.reflect.MethodAccessor getMethodAccessor(Method m)
Specified by:
getMethodAccessor in interface sun.reflect.LangReflectAccess

setMethodAccessor

public void setMethodAccessor(Method m,
                              sun.reflect.MethodAccessor accessor)
Specified by:
setMethodAccessor in interface sun.reflect.LangReflectAccess

getConstructorAccessor

public sun.reflect.ConstructorAccessor getConstructorAccessor(Constructor c)
Specified by:
getConstructorAccessor in interface sun.reflect.LangReflectAccess

setConstructorAccessor

public void setConstructorAccessor(Constructor c,
                                   sun.reflect.ConstructorAccessor accessor)
Specified by:
setConstructorAccessor in interface sun.reflect.LangReflectAccess

getConstructorSlot

public int getConstructorSlot(Constructor c)
Specified by:
getConstructorSlot in interface sun.reflect.LangReflectAccess

copyMethod

public Method copyMethod(Method arg)
Specified by:
copyMethod in interface sun.reflect.LangReflectAccess

copyField

public Field copyField(Field arg)
Specified by:
copyField in interface sun.reflect.LangReflectAccess

copyConstructor

public Constructor copyConstructor(Constructor arg)
Specified by:
copyConstructor in interface sun.reflect.LangReflectAccess