| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final Permission | |
| private static final Annotation[] | |
| private static final Method[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | checkAccessible(final Class<?>
callerClass the callerClass to invoke callerClass, final Class<?> setAccessiblethe type of member owner declaringClass, final int modifiers of member memberModifiers, final boolean whether to allow illegal access allowIllegalAccess)Implements org. |
| public boolean | Returns: the check resultthe accessible object to check accessibleObject, final Class<?> the callerClass to invoke callerClass)setAccessibleImplements org. |
| public void | configureAnnotation(final AnnotationNode node)
Implements org. |
| private void | |
| public void | configureAnnotationNodeFromDefinition(final AnnotationNode definition, final AnnotationNode root)
Implements org. |
| private static ClassNode | |
| public void | configureClassNode(final CompileUnit compileUnit, final ClassNode classNode)
Implements org. |
| private ClassNode | |
| private ClassNode | |
| private ClassNode | |
| private GenericsType[] | |
| private GenericsType[] | |
| private ClassNode[] | |
| public static GenericsType | |
| public static ClassNode | |
| private ClassNode | |
| protected void | |
| private Annotation[][] | Returns: array of arrays containing the annotations on the parameters of the given Constructorthe Constructor for which to return parameter annotations constructor)Synthetic parameters such as those added for inner class constructors may not be included in the parameter annotations array. |
| protected int | |
| public Object | getInvokeSpecialHandle(final Method method, final Object receiver)
Implements org. |
| private Object | |
| private static Constructor | |
| public Class | |
| public Class | |
| public int | getVersion()
Implements org. |
| public void | |
| public Object | invokeHandle(final Object
the handle handle, final Object[] arguments for the method call, can be empty but not null args)Implements org. |
| private ClassNode | |
| private ClassNode[] | |
| private void | |
| protected Parameter | makeParameter(final CompileUnit cu, final Type type, final Class<?> cl, final Annotation[] annotations, final String name)
Deprecated
|
| private Parameter[] | makeParameters(final CompileUnit cu, final Type[] types, final Class<?>[] cls, final Annotation[][] parameterAnnotations, final Member member)
|
| public static MethodHandles. | |
| protected Parameter[] | |
| public void | |
| private void | |
| private static void | |
| private AnnotationNode | |
| private Expression | |
| public MetaMethod | transformMetaMethod(final MetaClass
meta class metaClass, final MetaMethod the original meta method metaMethod, final Class<?> caller class, whose method sets accessible for methods caller)Implements org. |
| public MetaMethod | transformMetaMethod(final MetaClass
meta class metaClass, final MetaMethod the original meta method metaMethod)Implements org. |
| public boolean | trySetAccessible(final AccessibleObject
the accessible object ao)Implements org. accessible flag for this reflected object to true
if possible.
|
| ACCESS_PERMISSION | back to summary |
|---|---|
| private static final Permission ACCESS_PERMISSION | |
| EMPTY_ANNOTATION_ARRAY | back to summary |
|---|---|
| private static final Annotation[] EMPTY_ANNOTATION_ARRAY | |
| EMPTY_METHOD_ARRAY | back to summary |
|---|---|
| private static final Method[] EMPTY_METHOD_ARRAY | |
| Java8 | back to summary |
|---|---|
| public Java8() | |
| checkAccessible | back to summary |
|---|---|
| public boolean checkAccessible(final Class<?> callerClass, final Class<?> declaringClass, final int memberModifiers, final boolean allowIllegalAccess) Implements org. Doc from org. check whether the member can be accessed or not | |
| checkCanSetAccessible | back to summary |
|---|---|
| public boolean checkCanSetAccessible(final AccessibleObject accessibleObject, final Class<?> callerClass) Implements org. The following scenarios can not set accessible, i.e. the return value is false 1) SecurityException occurred 2) the accessible object is a Constructor object for the Class class
| |
| configureAnnotation | back to summary |
|---|---|
| public void configureAnnotation(final AnnotationNode node) Implements org.
| |
| configureAnnotation | back to summary |
|---|---|
| private void configureAnnotation(final AnnotationNode node, final Annotation annotation) | |
| configureAnnotationNodeFromDefinition | back to summary |
|---|---|
| public void configureAnnotationNodeFromDefinition(final AnnotationNode definition, final AnnotationNode root) Implements org.
| |
| configureClass | back to summary |
|---|---|
| private static ClassNode configureClass(final Class<?> c) | |
| configureClassNode | back to summary |
|---|---|
| public void configureClassNode(final CompileUnit compileUnit, final ClassNode classNode) Implements org.
| |
| configureGenericArray | back to summary |
|---|---|
| private ClassNode configureGenericArray(final GenericArrayType genericArrayType) | |
| configureParameterizedType | back to summary |
|---|---|
| private ClassNode configureParameterizedType(final ParameterizedType parameterizedType) | |
| configureType | back to summary |
|---|---|
| private ClassNode configureType(final Type type) | |
| configureTypeArguments | back to summary |
|---|---|
| private GenericsType[] configureTypeArguments(final Type[] ta) | |
| configureTypeParameters | back to summary |
|---|---|
| private GenericsType[] configureTypeParameters(final TypeVariable<?>[] tp) | |
| configureTypes | back to summary |
|---|---|
| private ClassNode[] configureTypes(final Type[] types) | |
| configureTypeVariableDefinition | back to summary |
|---|---|
| public static GenericsType configureTypeVariableDefinition(final ClassNode base, final ClassNode[] bounds) | |
| configureTypeVariableReference | back to summary |
|---|---|
| public static ClassNode configureTypeVariableReference(final String name) | |
| configureWildcardType | back to summary |
|---|---|
| private ClassNode configureWildcardType(final WildcardType wildcardType) | |
| fillParameterNames | back to summary |
|---|---|
| protected void fillParameterNames(final String[] names, final Member member) | |
| getConstructorParameterAnnotations | back to summary |
|---|---|
| private Annotation[][] getConstructorParameterAnnotations(final Constructor<?> constructor) Synthetic parameters such as those added for inner class constructors may
not be included in the parameter annotations array. This is the case when
at least one parameter of an inner class constructor has an annotation with
a RUNTIME retention (this occurs for JDK8 and below). This method will
normalize the annotations array so that it contains the same number of
elements as the array returned from
| |
| getElementCode | back to summary |
|---|---|
| protected int getElementCode(final ElementType value) | |
| getInvokeSpecialHandle | back to summary |
|---|---|
| public Object getInvokeSpecialHandle(final Method method, final Object receiver) 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 | |
| getInvokeSpecialHandleFallback | back to summary |
|---|---|
| private Object getInvokeSpecialHandleFallback(final Method method, final Object receiver) | |
| getLookupConstructor | back to summary |
|---|---|
| private static Constructor | |
| getPluginDefaultGroovyMethods | back to summary |
|---|---|
| public Class Implements org.
| |
| getPluginStaticGroovyMethods | back to summary |
|---|---|
| public Class Implements org.
| |
| getVersion | back to summary |
|---|---|
| public int getVersion() Implements org. Doc from org. Gives the version the plugin is made for
| |
| invalidateCallSites | back to summary |
|---|---|
| public void invalidateCallSites() Implements org.
| |
| invokeHandle | back to summary |
|---|---|
| public Object invokeHandle(final Object handle, final Object[] args) throws Throwable Implements org. Doc from org. Invokes a handle produced by #getInvokeSpecialdHandle | |
| makeClassNode | back to summary |
|---|---|
| private ClassNode makeClassNode(final CompileUnit cu, Type t, final Class<?> c) | |
| makeClassNodes | back to summary |
|---|---|
| private ClassNode[] makeClassNodes(final CompileUnit cu, final Type[] types, final Class<?>[] cls) | |
| makeInterfaceTypes | back to summary |
|---|---|
| private void makeInterfaceTypes(final CompileUnit cu, final ClassNode classNode, final Class<?> clazz) | |
| makeParameter | back to summary |
|---|---|
| protected Parameter makeParameter(final CompileUnit cu, final Type type, final Class<?> cl, final Annotation[] annotations, final String name)
Deprecated
| |
| makeParameters | back to summary |
|---|---|
| private Parameter[] makeParameters(final CompileUnit cu, final Type[] types, final Class<?>[] cls, final Annotation[][] parameterAnnotations, final Member member) | |
| of | back to summary |
|---|---|
| public static MethodHandles. | |
| processParameters | back to summary |
|---|---|
| protected Parameter[] processParameters(final CompileUnit compileUnit, final Method m)
Deprecated
| |
| setAdditionalClassInformation | back to summary |
|---|---|
| public void setAdditionalClassInformation(final ClassNode cn) Implements org.
| |
| setAnnotationMetaData | back to summary |
|---|---|
| private void setAnnotationMetaData(final Annotation[] annotations, final AnnotatedNode target) | |
| setRetentionPolicy | back to summary |
|---|---|
| private static void setRetentionPolicy(final RetentionPolicy value, final AnnotationNode node) | |
| toAnnotationNode | back to summary |
|---|---|
| private AnnotationNode toAnnotationNode(final Annotation annotation) | |
| toAnnotationValueExpression | back to summary |
|---|---|
| private Expression toAnnotationValueExpression(final Object value) | |
| transformMetaMethod | back to summary |
|---|---|
| public MetaMethod transformMetaMethod(final MetaClass metaClass, final MetaMethod metaMethod, final Class<?> caller) Implements org. Doc from org. transform meta method
| |
| transformMetaMethod | back to summary |
|---|---|
| public MetaMethod transformMetaMethod(final MetaClass metaClass, final MetaMethod metaMethod) Implements org. Doc from org. transform meta method.
| |
| trySetAccessible | back to summary |
|---|---|
| public boolean trySetAccessible(final AccessibleObject ao) Implements org. Doc from org. Set the
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final Constructor |
| Access | Constructor and Description |
|---|---|
| private |
| LOOKUP_Constructor | back to summary |
|---|---|
| private static final Constructor<MethodHandles. | |
| LookupHolder | back to summary |
|---|---|
| private LookupHolder() | |