Top Inners Constructors Methods
org.codehaus.groovy.ast.decompiled

pack-priv Class Annotations

extends Object
Class Inheritance
Imports
org.codehaus.groovy.ast.AnnotationNode, .ClassNode, org.codehaus.groovy.ast.expr.AnnotationConstantExpression, .ClassExpression, .ConstantExpression, .Expression, .ListExpression, .PropertyExpression, org.codehaus.groovy.vmplugin.VMPluginFactory, org.objectweb.asm.Type, java.lang.reflect.Array, java.util.List, .Map

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
private static void
private static Expression
pack-priv static AnnotationNode
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Annotationsback to summary
pack-priv Annotations()

Method Detail

addMemberIfFoundback to summary
private static void addMemberIfFound(AsmReferenceResolver resolver, AnnotationNode node, Map.Entry<String, Object> entry)
annotationValueToExpressionback to summary
private static Expression annotationValueToExpression(Object value, AsmReferenceResolver resolver)
createAnnotationNodeback to summary
pack-priv static AnnotationNode createAnnotationNode(AnnotationStub annotation, AsmReferenceResolver resolver)
org.codehaus.groovy.ast.decompiled back to summary

private Class Annotations.DecompiledAnnotationNode

extends AnnotationNode
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Object
private volatile boolean
Inherited from org.codehaus.groovy.ast.AnnotationNode:
ANNOTATION_TARGETCONSTRUCTOR_TARGETFIELD_TARGETLOCAL_VARIABLE_TARGETMETHOD_TARGETPACKAGE_TARGETPARAMETER_TARGETTYPE_PARAMETER_TARGETTYPE_TARGETTYPE_USE_TARGET

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
hasClassRetention()

Overrides org.codehaus.groovy.ast.AnnotationNode.hasClassRetention.

Flag corresponding to RetentionPolicy.CLASS.
public boolean
hasRuntimeRetention()

Overrides org.codehaus.groovy.ast.AnnotationNode.hasRuntimeRetention.

Flag corresponding to RetentionPolicy.RUNTIME.
public boolean
hasSourceRetention()

Overrides org.codehaus.groovy.ast.AnnotationNode.hasSourceRetention.

Flag corresponding to RetentionPolicy.SOURCE.
public boolean
private void
Inherited from org.codehaus.groovy.ast.AnnotationNode:
addMembergetClassNodegetMembergetMembersgetTextisBuiltInsetAllowedTargetssetClassRetentionsetMembersetRuntimeRetentionsetSourceRetentiontargetToNametoString

Field Detail

initLockback to summary
private final Object initLock
lazyInitDoneback to summary
private volatile boolean lazyInitDone

Constructor Detail

DecompiledAnnotationNodeback to summary
public DecompiledAnnotationNode(ClassNode type)

Method Detail

hasClassRetentionback to summary
public boolean hasClassRetention()

Overrides org.codehaus.groovy.ast.AnnotationNode.hasClassRetention.

Doc from org.codehaus.groovy.ast.AnnotationNode.hasClassRetention.

Flag corresponding to RetentionPolicy.CLASS. This is the default when no RetentionPolicy annotations are present.

Returns:boolean

true if the annotation is written in the bytecode, but not visible at runtime false otherwise

Annotations
@Override
hasRuntimeRetentionback to summary
public boolean hasRuntimeRetention()

Overrides org.codehaus.groovy.ast.AnnotationNode.hasRuntimeRetention.

Doc from org.codehaus.groovy.ast.AnnotationNode.hasRuntimeRetention.

Flag corresponding to RetentionPolicy.RUNTIME.

Returns:boolean

true if the annotation should be visible at runtime, false otherwise

Annotations
@Override
hasSourceRetentionback to summary
public boolean hasSourceRetention()

Overrides org.codehaus.groovy.ast.AnnotationNode.hasSourceRetention.

Doc from org.codehaus.groovy.ast.AnnotationNode.hasSourceRetention.

Flag corresponding to RetentionPolicy.SOURCE.

Returns:boolean

true if the annotation is only allowed in sources false otherwise

Annotations
@Override
isTargetAllowedback to summary
public boolean isTargetAllowed(int target)

Overrides org.codehaus.groovy.ast.AnnotationNode.isTargetAllowed.

Annotations
@Override
lazyInitback to summary
private void lazyInit()