[Groovy] Class TimedInterruptibleASTTransformation

  • org.codehaus.groovy.transform.TimedInterruptibleASTTransformation
@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.

See Also:
ThreadInterrupt
Since:
1.8.0

Constructor Detail

TimedInterruptibleASTTransformation()

Method Detail

@SuppressWarnings(value: Instanceof) static Object getConstantAnnotationParameter(AnnotationNode node, String parameterName, Class type, Object defaultValue)

@SuppressWarnings(value: Instanceof) void visit(ASTNode[] nodes, SourceUnit source)

© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/3.0.7/html/gapi/org/codehaus/groovy/transform/TimedInterruptibleASTTransformation.html