public interface

LangReflectAccess

sun.reflect.LangReflectAccess

Class Overview

An interface which gives privileged packages Java-level access to internals of java.lang.reflect.

Summary

Public Methods
abstract <T> Constructor<T> copyConstructor(Constructor<T> arg)
Makes a "child" copy of a Constructor
abstract Field copyField(Field arg)
Makes a "child" copy of a Field
abstract Method copyMethod(Method arg)
Makes a "child" copy of a Method
abstract ConstructorAccessor getConstructorAccessor(Constructor c)
Gets the ConstructorAccessor object for a java.lang.reflect.Constructor
abstract byte[] getConstructorAnnotations(Constructor c)
Gets the "annotations" field from a Constructor (used for serialization)
abstract byte[] getConstructorParameterAnnotations(Constructor c)
Gets the "parameterAnnotations" field from a Constructor (used for serialization)
abstract String getConstructorSignature(Constructor c)
Gets the "signature" field from a Constructor (used for serialization)
abstract int getConstructorSlot(Constructor c)
Gets the "slot" field from a Constructor (used for serialization)
abstract MethodAccessor getMethodAccessor(Method m)
Gets the MethodAccessor object for a java.lang.reflect.Method
abstract <T> Constructor<T> newConstructor(Class<T> declaringClass, Class[] parameterTypes, Class[] checkedExceptions, int modifiers, int slot, String signature, byte[] annotations, byte[] parameterAnnotations)
Creates a new java.lang.reflect.Constructor.
abstract Field newField(Class declaringClass, String name, Class type, int modifiers, int slot, String signature, byte[] annotations)
Creates a new java.lang.reflect.Field.
abstract Method newMethod(Class declaringClass, String name, Class[] parameterTypes, Class returnType, Class[] checkedExceptions, int modifiers, int slot, String signature, byte[] annotations, byte[] parameterAnnotations, byte[] annotationDefault)
Creates a new java.lang.reflect.Method.
abstract void setConstructorAccessor(Constructor c, ConstructorAccessor accessor)
Sets the ConstructorAccessor object for a java.lang.reflect.Constructor
abstract void setMethodAccessor(Method m, MethodAccessor accessor)
Sets the MethodAccessor object for a java.lang.reflect.Method

Public Methods

public abstract Constructor<T> copyConstructor (Constructor<T> arg)

Makes a "child" copy of a Constructor

public abstract Field copyField (Field arg)

Makes a "child" copy of a Field

public abstract Method copyMethod (Method arg)

Makes a "child" copy of a Method

public abstract ConstructorAccessor getConstructorAccessor (Constructor c)

Gets the ConstructorAccessor object for a java.lang.reflect.Constructor

public abstract byte[] getConstructorAnnotations (Constructor c)

Gets the "annotations" field from a Constructor (used for serialization)

public abstract byte[] getConstructorParameterAnnotations (Constructor c)

Gets the "parameterAnnotations" field from a Constructor (used for serialization)

public abstract String getConstructorSignature (Constructor c)

Gets the "signature" field from a Constructor (used for serialization)

public abstract int getConstructorSlot (Constructor c)

Gets the "slot" field from a Constructor (used for serialization)

public abstract MethodAccessor getMethodAccessor (Method m)

Gets the MethodAccessor object for a java.lang.reflect.Method

public abstract Constructor<T> newConstructor (Class<T> declaringClass, Class[] parameterTypes, Class[] checkedExceptions, int modifiers, int slot, String signature, byte[] annotations, byte[] parameterAnnotations)

Creates a new java.lang.reflect.Constructor. Access checks as per java.lang.reflect.AccessibleObject are not overridden.

public abstract Field newField (Class declaringClass, String name, Class type, int modifiers, int slot, String signature, byte[] annotations)

Creates a new java.lang.reflect.Field. Access checks as per java.lang.reflect.AccessibleObject are not overridden.

public abstract Method newMethod (Class declaringClass, String name, Class[] parameterTypes, Class returnType, Class[] checkedExceptions, int modifiers, int slot, String signature, byte[] annotations, byte[] parameterAnnotations, byte[] annotationDefault)

Creates a new java.lang.reflect.Method. Access checks as per java.lang.reflect.AccessibleObject are not overridden.

public abstract void setConstructorAccessor (Constructor c, ConstructorAccessor accessor)

Sets the ConstructorAccessor object for a java.lang.reflect.Constructor

public abstract void setMethodAccessor (Method m, MethodAccessor accessor)

Sets the MethodAccessor object for a java.lang.reflect.Method