| Modifier and Type | Method and Description |
|---|---|
| public void | checkAllowedToUnreflectFinalSetter(Class<?> caller, Field f)
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 | |
| public Field | |
| public Method | |
| public Class | getExecutableSharedExceptionTypes(Executable ex)
Gets the shared array of exception types of an Executable. |
| public Class | getExecutableSharedParameterTypes(Executable ex)
Gets the shared array of parameter types of an Executable. |
| public byte[] | getExecutableTypeAnnotationBytes(Executable ex)
Gets the byte[] that encodes TypeAnnotations on an Executable. |
| public <T extends AccessibleObject> T | |
| public boolean | |
| public <T> Constructor | newConstructorWithAccessor(Constructor<T> original, ConstructorAccessor accessor)
Creates a new root constructor from the original one, with a custom accessor. |
| public <T> T | newInstance(Constructor<T> ctor, Object[] args, Class<?> caller)
Returns a new instance created by the given constructor with access check |
| checkAllowedToUnreflectFinalSetter | back to summary |
|---|---|
| public void checkAllowedToUnreflectFinalSetter(Class<?> caller, Field f) throws IllegalAccessException 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 Makes a "child" copy of a Constructor | |
| copyField | back to summary |
|---|---|
| public Field copyField(Field arg) Makes a "child" copy of a Field | |
| copyMethod | back to summary |
|---|---|
| public Method copyMethod(Method arg) Makes a "child" copy of a Method | |
| getExecutableSharedExceptionTypes | back to summary |
|---|---|
| public Class Gets the shared array of exception types of an Executable. | |
| getExecutableSharedParameterTypes | back to summary |
|---|---|
| public Class Gets the shared array of parameter types of an Executable. | |
| getExecutableTypeAnnotationBytes | back to summary |
|---|---|
| public byte[] getExecutableTypeAnnotationBytes(Executable ex) Gets the byte[] that encodes TypeAnnotations on an Executable. | |
| getRoot | back to summary |
|---|---|
| public <T extends AccessibleObject> T getRoot(T obj) Gets the root of the given AccessibleObject object; null if arg is the root | |
| isTrustedFinalField | back to summary |
|---|---|
| public boolean isTrustedFinalField(Field f) Tests if this is a trusted final field | |
| newConstructorWithAccessor | back to summary |
|---|---|
| public <T> Constructor 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 Returns a new instance created by the given constructor with access check | |