| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Map | |
| private static final Map | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | checkAccessible(final Class<?>
callerClass the callerClass to invoke accessingClass, final Class<?> setAccessiblethe type of member owner declaringClass, final int modifiers of member memberModifiers, final boolean whether to allow illegal access allowIllegalAccess)Overrides org. Implements org. |
| public boolean | Returns: the check resultthe accessible object to check accessibleObject, Class<?> the callerClass to invoke callerClass)setAccessibleOverrides org. Implements org. Java8#checkCanSetAccessible(java. returns true and any of the following hold:
1) C and D are in the same module. |
| private static Set | |
| private static Map | |
| private CachedMethod | |
| private static Set | |
| private static List | |
| private Optional | getAccessibleMetaMethod(CachedMethod metaMethod, Class<?>[] params, Class<?> caller, Class<?> sc, boolean declared)
|
| public Map | getDefaultImportClasses(String[]
the default import package names, e.g. java.lang. packageNames)Overrides default org. |
| public Object | getInvokeSpecialHandle(final Method method, final Object receiver)
Overrides org. Implements org. |
| private static List | |
| private CachedMethod | |
| public int | getVersion()
Overrides org. Implements org. |
| private static boolean | |
| private static boolean | |
| private static String[] | |
| public static MethodHandles. | |
| private static CachedMethod | |
| public MetaMethod | transformMetaMethod(MetaClass
meta class metaClass, MetaMethod the original meta method metaMethod, Class<?> caller class, whose method sets accessible for methods caller)Overrides org. Implements org. |
| public boolean | trySetAccessible(AccessibleObject
the accessible object ao)Overrides org. Implements org. accessible flag for this reflected object to true
if possible.
|
| CONCEALED_PACKAGES_TO_OPEN | back to summary |
|---|---|
| private static final Map<String, Set<String>> CONCEALED_PACKAGES_TO_OPEN | |
| EXPORTED_PACKAGES_TO_OPEN | back to summary |
|---|---|
| private static final Map<String, Set<String>> EXPORTED_PACKAGES_TO_OPEN | |
| MULTIPLY | back to summary |
|---|---|
| private static final String MULTIPLY | |
| Java9 | back to summary |
|---|---|
| public Java9() | |
| checkAccessible | back to summary |
|---|---|
| public boolean checkAccessible(final Class<?> accessingClass, final Class<?> declaringClass, final int memberModifiers, final boolean allowIllegalAccess) Overrides org. Implements org. Doc from org. check whether the member can be accessed or not | |
| checkCanSetAccessible | back to summary |
|---|---|
| public boolean checkCanSetAccessible(AccessibleObject accessibleObject, Class<?> callerClass) Overrides org. Implements org. This method may be used by a caller in class C to check whether to enable access to a member of declaring class D successfully
if 1) C and D are in the same module. 2) The member is public and D is public in a package that the module containing D exports to at least the module containing C. 3) The member is protected static, D is public in a package that the module containing D exports to at least the module containing C, and C is a subclass of D. 4) D is in a package that the module containing D opens to at least the module containing C. All packages in unnamed and open modules are open to all modules and so this method always succeeds when D is in an unnamed or open module.
| |
| concealedPackageList | back to summary |
|---|---|
| private static Set | |
| doFindClasses | back to summary |
|---|---|
| private static Map | |
| doTransformMetaMethod | back to summary |
|---|---|
| private CachedMethod doTransformMetaMethod(MetaClass metaClass, CachedMethod metaMethod, Class<?> caller) | |
| exportedPackageList | back to summary |
|---|---|
| private static Set | |
| findSuperclasses | back to summary |
|---|---|
| private static List | |
| getAccessibleMetaMethod | back to summary |
|---|---|
| private Optional | |
| getDefaultImportClasses | back to summary |
|---|---|
| public Map Overrides default org. Doc from org. Returns the default import classes: class name -> the relevant package names | |
| getInvokeSpecialHandle | back to summary |
|---|---|
| public Object getInvokeSpecialHandle(final Method method, final Object receiver) Overrides org. Implements org. Doc from org. Returns a handle with bound receiver to invokeSpecial the given method. This method will require at least Java 7, but since the source has to compile on older Java versions as well it is not marked to return a MethodHandle and uses Object instead | |
| getMetaMethods | back to summary |
|---|---|
| private static List | |
| getOrTransformMetaMethod | back to summary |
|---|---|
| private CachedMethod getOrTransformMetaMethod(MetaClass metaClass, Class<?> caller, CachedMethod cachedMethod) | |
| getVersion | back to summary |
|---|---|
| public int getVersion() Overrides org. Implements org. Doc from org. Gives the version the plugin is made for
| |
| isExported | back to summary |
|---|---|
| private static boolean isExported(final ModuleDescriptor descriptor, final String pn) | |
| isOpen | back to summary |
|---|---|
| private static boolean isOpen(final ModuleDescriptor descriptor, final String pn) | |
| JAVA8_PACKAGES | back to summary |
|---|---|
| private static String[] JAVA8_PACKAGES() | |
| of | back to summary |
|---|---|
| public static MethodHandles. | |
| transformBigIntegerMetaMethod | back to summary |
|---|---|
| private static CachedMethod transformBigIntegerMetaMethod(CachedMethod metaMethod, Class<?>[] params) | |
| transformMetaMethod | back to summary |
|---|---|
| public MetaMethod transformMetaMethod(MetaClass metaClass, MetaMethod metaMethod, Class<?> caller) Overrides org. Implements org. Doc from org. transform meta method
| |
| trySetAccessible | back to summary |
|---|---|
| public boolean trySetAccessible(AccessibleObject ao) Overrides org. Implements org. Doc from org. Set the
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final Method |
| Access | Constructor and Description |
|---|---|
| private |
| MULTIPLY_METHOD | back to summary |
|---|---|
| private static final Method MULTIPLY_METHOD | |
| BigIntegerMultiplyMethodHolder | back to summary |
|---|---|
| private BigIntegerMultiplyMethodHolder() | |
| Modifier and Type | Field and Description |
|---|---|
| private static final Constructor | |
| private static final Method |
| Access | Constructor and Description |
|---|---|
| private |
| LOOKUP_Constructor | back to summary |
|---|---|
| private static final Constructor<MethodHandles. | |
| PRIVATE_LOOKUP | back to summary |
|---|---|
| private static final Method PRIVATE_LOOKUP | |
| LookupHolder | back to summary |
|---|---|
| private LookupHolder() | |