@CompileStatic @GroovyASTTransformation(phase: CompilePhase.CANONICALIZATION) class ConditionalInterruptibleASTTransformation extends AbstractInterruptibleASTTransformation
Allows "interrupt-safe" executions of scripts by adding a custom conditional check on loops (for, while, do) and first statement of closures. By default, also adds an interrupt check statement on the beginning of method calls.
Constructor and description |
---|
ConditionalInterruptibleASTTransformation() |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
visitAnnotations(AnnotatedNode node) |
|
void |
visitClass(ClassNode type) |
|
void |
visitClosureExpression(ClosureExpression closureExpr) |
|
void |
visitField(FieldNode node) |
|
void |
visitMethod(MethodNode node) |
|
void |
visitProperty(PropertyNode node) |
Copyright © 2003-2022 The Apache Software Foundation. All rights reserved.