Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
public <T> Constructor | copyConstructor(Constructor<T> arg)
Implements jdk. Makes a "child" copy of a Constructor |
public Field | copyField(Field arg)
Implements jdk. Makes a "child" copy of a Field |
public Method | copyMethod(Method arg)
Implements jdk. Makes a "child" copy of a Method |
public ConstructorAccessor | getConstructorAccessor(Constructor<?> c)
Implements jdk. Gets the ConstructorAccessor object for a java.lang.reflect.Constructor |
public byte[] | getConstructorAnnotations(Constructor<?> c)
Implements jdk. Gets the "annotations" field from a Constructor (used for serialization) |
public byte[] | getConstructorParameterAnnotations(Constructor<?> c)
Implements jdk. Gets the "parameterAnnotations" field from a Constructor (used for serialization) |
public String | getConstructorSignature(Constructor<?> c)
Implements jdk. Gets the "signature" field from a Constructor (used for serialization) |
public int | getConstructorSlot(Constructor<?> c)
Implements jdk. Gets the "slot" field from a Constructor (used for serialization) |
public Class | getExecutableSharedExceptionTypes(Executable ex)
Implements jdk. Gets the shared array of exception types of an Executable. |
public Class | getExecutableSharedParameterTypes(Executable ex)
Implements jdk. Gets the shared array of parameter types of an Executable. |
public byte[] | getExecutableTypeAnnotationBytes(Executable ex)
Implements jdk. Gets the byte[] that encodes TypeAnnotations on an Executable. |
public MethodAccessor | getMethodAccessor(Method m)
Implements jdk. Gets the MethodAccessor object for a java.lang.reflect.Method |
public <T extends AccessibleObject> T | getRoot(T obj)
Implements jdk. Gets the root of the given AccessibleObject object; null if arg is the root |
public boolean | isTrustedFinalField(Field f)
Implements jdk. Tests if this is a trusted final field |
public Method | leafCopyMethod(Method arg)
Implements jdk. Makes a copy of this non-root a Method |
public <T> Constructor | newConstructor(Class<T> declaringClass, Class<?>[] parameterTypes, Class<?>[] checkedExceptions, int modifiers, int slot, String signature, byte[] annotations, byte[] parameterAnnotations)
Implements jdk. Creates a new java.lang.reflect.Constructor. |
public <T> T | newInstance(Constructor<T> ctor, Object[] args, Class<?> caller)
Implements jdk. Returns a new instance created by the given constructor with access check |
public void | setConstructorAccessor(Constructor<?> c, ConstructorAccessor accessor)
Implements jdk. Sets the ConstructorAccessor object for a java.lang.reflect.Constructor |
public void | setMethodAccessor(Method m, MethodAccessor accessor)
Implements jdk. Sets the MethodAccessor object for a java.lang.reflect.Method |
ReflectAccess | back to summary |
---|---|
pack-priv ReflectAccess() |
copyConstructor | back to summary |
---|---|
public <T> Constructor Implements jdk. Doc from jdk. Makes a "child" copy of a Constructor |
copyField | back to summary |
---|---|
public Field copyField(Field arg) Implements jdk. Doc from jdk. Makes a "child" copy of a Field |
copyMethod | back to summary |
---|---|
public Method copyMethod(Method arg) Implements jdk. Doc from jdk. Makes a "child" copy of a Method |
getConstructorAccessor | back to summary |
---|---|
public ConstructorAccessor getConstructorAccessor(Constructor<?> c) Implements jdk. Doc from jdk. Gets the ConstructorAccessor object for a java.lang.reflect.Constructor |
getConstructorAnnotations | back to summary |
---|---|
public byte[] getConstructorAnnotations(Constructor<?> c) Implements jdk. Doc from jdk. Gets the "annotations" field from a Constructor (used for serialization) |
getConstructorParameterAnnotations | back to summary |
---|---|
public byte[] getConstructorParameterAnnotations(Constructor<?> c) Implements jdk. Doc from jdk. Gets the "parameterAnnotations" field from a Constructor (used for serialization) |
getConstructorSignature | back to summary |
---|---|
public String getConstructorSignature(Constructor<?> c) Implements jdk. Doc from jdk. Gets the "signature" field from a Constructor (used for serialization) |
getConstructorSlot | back to summary |
---|---|
public int getConstructorSlot(Constructor<?> c) Implements jdk. Doc from jdk. Gets the "slot" field from a Constructor (used for serialization) |
getExecutableSharedExceptionTypes | back to summary |
---|---|
public Class Implements jdk. Doc from jdk. Gets the shared array of exception types of an Executable. |
getExecutableSharedParameterTypes | back to summary |
---|---|
public Class Implements jdk. Doc from jdk. Gets the shared array of parameter types of an Executable. |
getExecutableTypeAnnotationBytes | back to summary |
---|---|
public byte[] getExecutableTypeAnnotationBytes(Executable ex) Implements jdk. Doc from jdk. Gets the byte[] that encodes TypeAnnotations on an Executable. |
getMethodAccessor | back to summary |
---|---|
public MethodAccessor getMethodAccessor(Method m) Implements jdk. Doc from jdk. Gets the MethodAccessor object for a java.lang.reflect.Method |
getRoot | back to summary |
---|---|
public <T extends AccessibleObject> T getRoot(T obj) Implements jdk. Doc from jdk. Gets the root of the given AccessibleObject object; null if arg is the root
|
isTrustedFinalField | back to summary |
---|---|
public boolean isTrustedFinalField(Field f) Implements jdk. Doc from jdk. Tests if this is a trusted final field |
leafCopyMethod | back to summary |
---|---|
public Method leafCopyMethod(Method arg) Implements jdk. Doc from jdk. Makes a copy of this non-root a Method |
newConstructor | back to summary |
---|---|
public <T> Constructor Implements jdk. Doc from jdk. Creates a new java.lang.reflect.Constructor. Access checks as per java.lang.reflect.AccessibleObject are not overridden. |
newInstance | back to summary |
---|---|
public <T> T newInstance(Constructor<T> ctor, Object[] args, Class<?> caller) throws IllegalAccessException, InstantiationException, InvocationTargetException Implements jdk. Doc from jdk. Returns a new instance created by the given constructor with access check |
setConstructorAccessor | back to summary |
---|---|
public void setConstructorAccessor(Constructor<?> c, ConstructorAccessor accessor) Implements jdk. Doc from jdk. Sets the ConstructorAccessor object for a java.lang.reflect.Constructor |
setMethodAccessor | back to summary |
---|---|
public void setMethodAccessor(Method m, MethodAccessor accessor) Implements jdk. Doc from jdk. Sets the MethodAccessor object for a java.lang.reflect.Method |