Deprecated
| Modifier and Type | Field and Description |
|---|---|
| private static final Permission | |
| private static final Annotation[] | |
| private static final Class | |
| private static final Method[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private Expression | |
| public boolean | checkAccessible(Class<?>
callerClass the callerClass to invoke callerClass, Class<?> setAccessiblethe type of member owner declaringClass, int modifiers of member memberModifiers, boolean whether to allow illegal access allowIllegalAccess)Implements org. |
| public boolean | Returns: the check resultthe accessible object to check accessibleObject, Class<?> the callerClass to invoke callerClass)setAccessibleImplements org. |
| public void | |
| private void | |
| public void | |
| public void | |
| private static ClassNode | |
| public void | configureClassNode(CompileUnit compileUnit, ClassNode classNode)
Implements org. |
| private ClassNode | |
| private ClassNode | |
| private ClassNode | |
| private GenericsType[] | |
| private ClassNode[] | |
| private GenericsType[] | |
| private GenericsType | |
| 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(Method m, Object receiver)
Implements org. |
| public Class | |
| public Class | |
| public int | getVersion()
Implements org. |
| public void | |
| public Object | invokeHandle(Object
the handle handle, Object[] arguments for the method call, can be empty but not null args)Implements org. |
| private ClassNode | |
| private ClassNode[] | |
| private void | |
| protected Parameter | makeParameter(CompileUnit cu, Type type, Class<T> cl, Annotation[] annotations, String name)
Deprecated
|
| private Parameter[] | makeParameters(CompileUnit cu, Type[] types, Class<T>[] cls, Annotation[][] parameterAnnotations, Member member)
|
| protected Parameter[] | |
| public void | |
| private void | |
| private void | |
| private static void | |
| private static void | |
| public MetaMethod | transformMetaMethod(MetaClass
meta class metaClass, MetaMethod the original meta method metaMethod, Class<?> caller class, whose method sets accessible for methods caller)Implements org. |
| public MetaMethod | transformMetaMethod(MetaClass
meta class metaClass, MetaMethod the original meta method metaMethod)Implements org. |
| public boolean | trySetAccessible(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_CLASS_ARRAY | back to summary |
|---|---|
| private static final Class<T>[] EMPTY_CLASS_ARRAY | |
| EMPTY_METHOD_ARRAY | back to summary |
|---|---|
| private static final Method[] EMPTY_METHOD_ARRAY | |
| Java5 | back to summary |
|---|---|
| public Java5() | |
| annotationValueToExpression | back to summary |
|---|---|
| private Expression annotationValueToExpression(Object value) | |
| checkAccessible | back to summary |
|---|---|
| public boolean checkAccessible(Class<?> callerClass, Class<?> declaringClass, int memberModifiers, boolean allowIllegalAccess) 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) 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(AnnotationNode node) Implements org. | |
| configureAnnotation | back to summary |
|---|---|
| private void configureAnnotation(AnnotationNode node, Annotation annotation) | |
| configureAnnotationFromDefinition | back to summary |
|---|---|
| public void configureAnnotationFromDefinition(AnnotationNode definition, AnnotationNode root)
Deprecated
| |
| configureAnnotationNodeFromDefinition | back to summary |
|---|---|
| public void configureAnnotationNodeFromDefinition(AnnotationNode definition, AnnotationNode root) Implements org. | |
| configureClass | back to summary |
|---|---|
| private static ClassNode configureClass(Class<T> c) | |
| configureClassNode | back to summary |
|---|---|
| public void configureClassNode(CompileUnit compileUnit, ClassNode classNode) Implements org. | |
| configureGenericArray | back to summary |
|---|---|
| private ClassNode configureGenericArray(GenericArrayType genericArrayType) | |
| configureParameterizedType | back to summary |
|---|---|
| private ClassNode configureParameterizedType(ParameterizedType parameterizedType) | |
| configureType | back to summary |
|---|---|
| private ClassNode configureType(Type type) | |
| configureTypeArguments | back to summary |
|---|---|
| private GenericsType[] configureTypeArguments(Type[] ta) | |
| configureTypes | back to summary |
|---|---|
| private ClassNode[] configureTypes(Type[] types) | |
| configureTypeVariable | back to summary |
|---|---|
| private GenericsType[] configureTypeVariable(TypeVariable<D extends GenericDeclaration>[] tvs) | |
| configureTypeVariableDefinition | back to summary |
|---|---|
| private GenericsType configureTypeVariableDefinition(TypeVariable<D extends GenericDeclaration> tv) | |
| configureTypeVariableDefinition | back to summary |
|---|---|
| public static GenericsType configureTypeVariableDefinition(ClassNode base, ClassNode[] cBounds) | |
| configureTypeVariableReference | back to summary |
|---|---|
| public static ClassNode configureTypeVariableReference(String name) | |
| configureWildcardType | back to summary |
|---|---|
| private ClassNode configureWildcardType(final WildcardType wildcardType) | |
| fillParameterNames | back to summary |
|---|---|
| protected void fillParameterNames(String[] names, Member member) | |
| getConstructorParameterAnnotations | back to summary |
|---|---|
| private Annotation[][] getConstructorParameterAnnotations(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(ElementType value) | |
| getInvokeSpecialHandle | back to summary |
|---|---|
| public Object getInvokeSpecialHandle(Method m, 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 | |
| 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(Object handle, Object[] args) throws Throwable Implements org. Doc from org. Invokes a handle produced by #getInvokeSpecialdHandle | |
| makeClassNode | back to summary |
|---|---|
| private ClassNode makeClassNode(CompileUnit cu, Type t, Class<T> c) | |
| makeClassNodes | back to summary |
|---|---|
| private ClassNode[] makeClassNodes(CompileUnit cu, Type[] types, Class<T>[] cls) | |
| makeInterfaceTypes | back to summary |
|---|---|
| private void makeInterfaceTypes(CompileUnit cu, ClassNode classNode, Class<T> clazz) | |
| makeParameter | back to summary |
|---|---|
| protected Parameter makeParameter(CompileUnit cu, Type type, Class<T> cl, Annotation[] annotations, String name)
Deprecated
| |
| makeParameters | back to summary |
|---|---|
| private Parameter[] makeParameters(CompileUnit cu, Type[] types, Class<T>[] cls, Annotation[][] parameterAnnotations, Member member) | |
| processParameters | back to summary |
|---|---|
| protected Parameter[] processParameters(CompileUnit compileUnit, Method m)
Deprecated
| |
| setAdditionalClassInformation | back to summary |
|---|---|
| public void setAdditionalClassInformation(ClassNode cn) Implements org. | |
| setAnnotationMetaData | back to summary |
|---|---|
| private void setAnnotationMetaData(Annotation[] annotations, AnnotatedNode an) | |
| setGenericsTypes | back to summary |
|---|---|
| private void setGenericsTypes(ClassNode cn) | |
| setMethodDefaultValue | back to summary |
|---|---|
| private static void setMethodDefaultValue(MethodNode mn, Method m) | |
| setRetentionPolicy | back to summary |
|---|---|
| private static void setRetentionPolicy(RetentionPolicy value, AnnotationNode node) | |
| transformMetaMethod | back to summary |
|---|---|
| public MetaMethod transformMetaMethod(MetaClass metaClass, MetaMethod metaMethod, Class<?> caller) Implements org. Doc from org. transform meta method
| |
| transformMetaMethod | back to summary |
|---|---|
| public MetaMethod transformMetaMethod(MetaClass metaClass, MetaMethod metaMethod) Implements org. Doc from org. transform meta method.
| |
| trySetAccessible | back to summary |
|---|---|
| public boolean trySetAccessible(AccessibleObject ao) Implements org. Doc from org. Set the
| |