| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | checkAllowedToUnreflectFinalSetter(Class<?> caller, Field f)
Implements jdk. Check that the caller is allowed to unreflect for mutation a final instance field in a class that is not a record or hidden class. |
| 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 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 <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 <T> Constructor | newConstructorWithAccessor(Constructor<T> original, ConstructorAccessor accessor)
Implements jdk. Creates a new root constructor from the original one, with a custom accessor. |
| 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 |
| ReflectAccess | back to summary |
|---|---|
| pack-priv ReflectAccess() | |
| checkAllowedToUnreflectFinalSetter | back to summary |
|---|---|
| public void checkAllowedToUnreflectFinalSetter(Class<?> caller, Field f) throws IllegalAccessException Implements jdk. Doc from jdk. Check that the caller is allowed to unreflect for mutation a final instance field in a class that is not a record or hidden class.
| |
| 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 | |
| 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. | |
| 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 | |
| newConstructorWithAccessor | back to summary |
|---|---|
| public <T> Constructor Implements jdk. Doc from jdk. Creates a new root constructor from the original one, with a custom accessor. Used by serialization hooks. | |
| 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 | |