@CompileStatic @AutoFinal @GroovyASTTransformation(phase: CompilePhase.CANONICALIZATION) class TimedInterruptibleASTTransformation extends AbstractASTTransformation
Allows "interrupt-safe" executions of scripts by adding timer expiration checks on loops (for, while, do) and first statement of closures. By default, also adds an interrupt check statement on the beginning of method calls.
Fields inherited from class | Fields |
---|---|
class AbstractASTTransformation |
RETENTION_CLASSNODE |
Constructor and description |
---|
TimedInterruptibleASTTransformation() |
Type Params | Return Type | Name and description |
---|---|---|
|
static Object |
getConstantAnnotationParameter(AnnotationNode node, String parameterName, Class type, Object defaultValue) |
|
void |
visit(ASTNode[] nodes, SourceUnit source) |
Methods inherited from class | Name |
---|---|
class AbstractASTTransformation |
addError, checkPropertyList, checkPropertyList, checkPropertyList, deemedInternalName, getAnnotationName, getMemberClassList, getMemberClassValue, getMemberClassValue, getMemberIntValue, getMemberStringList, getMemberStringValue, getMemberStringValue, getMemberValue, hasAnnotation, memberHasValue, shouldSkip, shouldSkip, shouldSkipOnDescriptorUndefinedAware, shouldSkipUndefinedAware, shouldSkipUndefinedAware, tokenize |
Copyright © 2003-2022 The Apache Software Foundation. All rights reserved.