| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: the result of checkingcallerClass the callerClass to invoke callerClass, Class<?> setAccessiblethe type of member owner declaringClass, int modifiers of member memberModifiers, boolean whether to allow illegal access allowIllegalAccess)check whether the member can be accessed or not |
| public boolean | Returns: the check resultthe accessible object to check accessibleObject, Class<?> the callerClass to invoke callerClass)setAccessibleCheck whether invoking |
| public void | |
| public void | |
| public void | |
| public default Map | Returns: the default import classesthe default import package names, e.g. java.lang. packageNames)Returns the default import classes: class name -> the relevant package names |
| public Object | Returns: null in case of jdk<7, otherwise a handle that takes the method call arguments for the invokespecial callReturns a handle with bound receiver to invokeSpecial the given method. |
| public Class | |
| public Class | |
| public int | Returns: 7 for jdk7, 8 for jdk8, 9 for jdk9 or higherGives the version the plugin is made for |
| public void | |
| public Object | Returns: the result of the method callthe handle handle, Object[] arguments for the method call, can be empty but not null args)Invokes a handle produced by #getInvokeSpecialdHandle |
| public void | |
| public MetaMethod | Returns: the transformed meta methodmeta class metaClass, MetaMethod the original meta method metaMethod, Class<?> caller class, whose method sets accessible for methods caller)transform meta method |
| public MetaMethod | Returns: the transformed meta methodmeta class metaClass, MetaMethod the original meta method metaMethod)transform meta method. |
| public boolean | Returns: true if the accessible flag is set to true;
false if access cannot be enabled.the accessible object ao)Set the |
| checkAccessible | back to summary |
|---|---|
| public boolean checkAccessible(Class<?> callerClass, Class<?> declaringClass, int memberModifiers, boolean allowIllegalAccess) check whether the member can be accessed or not | |
| checkCanSetAccessible | back to summary |
|---|---|
| public boolean checkCanSetAccessible(AccessibleObject accessibleObject, Class<?> callerClass) Check whether invoking
| |
| configureAnnotation | back to summary |
|---|---|
| public void configureAnnotation(AnnotationNode an) | |
| configureAnnotationNodeFromDefinition | back to summary |
|---|---|
| public void configureAnnotationNodeFromDefinition(AnnotationNode definition, AnnotationNode root) | |
| configureClassNode | back to summary |
|---|---|
| public void configureClassNode(CompileUnit compileUnit, ClassNode classNode) | |
| getDefaultImportClasses | back to summary |
|---|---|
| public default Map Returns the default import classes: class name -> the relevant package names | |
| getInvokeSpecialHandle | back to summary |
|---|---|
| public Object getInvokeSpecialHandle(Method m, Object receiver) 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
| |
| getPluginDefaultGroovyMethods | back to summary |
|---|---|
| public Class | |
| getPluginStaticGroovyMethods | back to summary |
|---|---|
| public Class | |
| getVersion | back to summary |
|---|---|
| public int getVersion() Gives the version the plugin is made for
| |
| invalidateCallSites | back to summary |
|---|---|
| public void invalidateCallSites() | |
| invokeHandle | back to summary |
|---|---|
| public Object invokeHandle(Object handle, Object[] args) throws Throwable Invokes a handle produced by #getInvokeSpecialdHandle | |
| setAdditionalClassInformation | back to summary |
|---|---|
| public void setAdditionalClassInformation(ClassNode c) | |
| transformMetaMethod | back to summary |
|---|---|
| public MetaMethod transformMetaMethod(MetaClass metaClass, MetaMethod metaMethod, Class<?> caller) transform meta method
| |
| transformMetaMethod | back to summary |
|---|---|
| public MetaMethod transformMetaMethod(MetaClass metaClass, MetaMethod metaMethod) transform meta method.
| |
| trySetAccessible | back to summary |
|---|---|
| public boolean trySetAccessible(AccessibleObject ao) Set the
| |