| Modifier and Type | Class and Description |
|---|---|
| private static class | ReflectionUtils.ClassContextHelper
Deprecated
as a consequence of
SecurityManager being deprecated.
|
| Modifier and Type | Field and Description |
|---|---|
| private static final ReflectionUtils. | HELPER
Deprecated
as a consequence of
ReflectionUtils.ClassContextHelper being deprecated.
|
| private static final Set | IGNORED_PACKAGES
The packages in the call stack that are only part of the Groovy MOP. |
| private static final VMPlugin |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | checkAccessible(final Class<?> callerClass, final Class<?> declaringClass, final int memberModifiers, final boolean allowIllegalAccess)
|
| public static boolean | |
| private static boolean | |
| private static List | |
| public static Class | Returns: The Class of the callerGets the immediate calling class, ignoring MOP frames. |
| public static Class | Returns: The Class of the matched caller, or null if there aren't enough stackframes to satisfy matchLevelhow may call stacks down to look.
If it is less than 1 it is treated as though it was 1. matchLevel)Gets the called that is matchLevel stack frames before the call, ignoring MOP frames. |
| public static Class | Returns: The Class of the matched caller, or null if there aren't enough stackframes to satisfy matchLevelhow may call stacks down to look.
If it is less than 1 it is treated as though it was 1. matchLevel, final Collection<String> A collection of string names of packages to exclude
in addition to the MOP packages when counting stack frames. extraIgnoredPackages)Gets the called that is matchLevel stack frames before the call, ignoring MOP frames and desired exclude packages. |
| public static List | |
| public static List | |
| public static boolean | Returns: true if getCallingClass can return anything but null, false if it will only return null.Determines whether or not the getCallingClass methods will return any sensible results. |
| public static boolean | |
| public static Optional | |
| public static AccessibleObject[] | |
| public static Optional | |
| public static boolean |
| HELPER | back to summary |
|---|---|
| private static final ReflectionUtils. Deprecated as a consequence of | |
| IGNORED_PACKAGES | back to summary |
|---|---|
| private static final Set<String> IGNORED_PACKAGES The packages in the call stack that are only part of the Groovy MOP. | |
| VM_PLUGIN | back to summary |
|---|---|
| private static final VMPlugin VM_PLUGIN | |
| ReflectionUtils | back to summary |
|---|---|
| private ReflectionUtils() | |
| checkAccessible | back to summary |
|---|---|
| public static boolean checkAccessible(final Class<?> callerClass, final Class<?> declaringClass, final int memberModifiers, final boolean allowIllegalAccess) | |
| checkCanSetAccessible | back to summary |
|---|---|
| public static boolean checkCanSetAccessible(final AccessibleObject accessibleObject, final Class<?> caller) | |
| classShouldBeIgnored | back to summary |
|---|---|
| private static boolean classShouldBeIgnored(final Class<T> c, final Collection<String> extraIgnoredPackages) | |
| doGetMethods | back to summary |
|---|---|
| private static List | |
| getCallingClass | back to summary |
|---|---|
| public static Class Gets the immediate calling class, ignoring MOP frames.
| |
| getCallingClass | back to summary |
|---|---|
| public static Class Gets the called that is matchLevel stack frames before the call, ignoring MOP frames.
| |
| getCallingClass | back to summary |
|---|---|
| public static Class Gets the called that is matchLevel stack frames before the call, ignoring MOP frames and desired exclude packages.
| |
| getDeclaredMethods | back to summary |
|---|---|
| public static List | |
| getMethods | back to summary |
|---|---|
| public static List | |
| isCallingClassReflectionAvailable | back to summary |
|---|---|
| public static boolean isCallingClassReflectionAvailable() Determines whether or not the getCallingClass methods will return any sensible results. On JVMs that are not Sun derived i.e. (gcj, Harmony) this will likely return false. When not available all getCallingClass methods will return null.
| |
| isSealed | back to summary |
|---|---|
| public static boolean isSealed(Class<?> c) | |
| makeAccessible | back to summary |
|---|---|
| public static Optional | |
| makeAccessible | back to summary |
|---|---|
| public static AccessibleObject[] makeAccessible(final AccessibleObject[] aoa) | |
| makeAccessibleInPrivilegedAction | back to summary |
|---|---|
| public static Optional | |
| trySetAccessible | back to summary |
|---|---|
| public static boolean trySetAccessible(final AccessibleObject ao) | |
Deprecated
as a consequence of SecurityManager being deprecated. See corresponding docs for further information.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Class | getClassContext()
Overrides java. |
| ClassContextHelper | back to summary |
|---|---|
| private ClassContextHelper() | |
| getClassContext | back to summary |
|---|---|
| public Class Overrides java. Doc from java. Returns the current execution stack as an array of classes.
The length of the array is the number of methods on the execution
stack. The element at index | |