public final class ClassUtil extends Object
Modifier and Type | Field and Description |
---|---|
static MethodHandle |
setAccessible0_Method |
Modifier and Type | Method and Description |
---|---|
static Field |
getField0(@NotNull Class<?> clazz,
@NotNull String name,
boolean error) |
static Method |
getMethod0(@NotNull Class<?> clazz,
@NotNull String name,
Class[] args,
boolean first) |
static void |
setAccessible(@NotNull AccessibleObject accessibleObject)
Set the accessible flag for the provided
accessibleObject indicating that
the reflected object should suppress Java language access checking when it is used. |
public static final MethodHandle setAccessible0_Method
public static Field getField0(@NotNull @NotNull Class<?> clazz, @NotNull @NotNull String name, boolean error)
public static void setAccessible(@NotNull @NotNull AccessibleObject accessibleObject)
accessibleObject
indicating that
the reflected object should suppress Java language access checking when it is used.
The setting of the accessible flag might be subject to security manager approval.
accessibleObject
- to modifySecurityException
- – if the request is denied.SecurityManager.checkPermission(java.security.Permission)
,
RuntimePermission
Copyright © 2023. All rights reserved.