[Groovy] Class TimedInterruptibleASTTransformation
- org.codehaus.groovy.transform.TimedInterruptibleASTTransformation
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.
- Authors:
- Cedric Champeau
- Hamlet D'Arcy
- Paul King
- See Also:
- ThreadInterrupt
- Since:
- 1.8.0
Fields inherited from class | Fields |
---|---|
class AbstractASTTransformation | RETENTION_CLASSNODE, sourceUnit |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
static def |
getConstantAnnotationParameter(AnnotationNode node, String parameterName, Class type, def defaultValue) | |
void |
visit(ASTNode[] nodes, SourceUnit source) |
Inherited Methods Summary
Methods inherited from class | Name |
---|---|
class AbstractASTTransformation | addError, checkIncludeExclude, checkIncludeExclude, checkNotInterface, copyAnnotatedNodeAnnotations, deemedInternalName, getClassList, getMemberClassValue, getMemberClassValue, getMemberIntValue, getMemberList, getMemberStringValue, getMemberStringValue, getMemberValue, hasAnnotation, init, memberHasValue, nonGeneric, shouldSkip, shouldSkipOnDescriptor, tokenize |
class Object | wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Method Detail
static def getConstantAnnotationParameter(AnnotationNode node, String parameterName, Class type, def defaultValue)
void visit(ASTNode[] nodes, SourceUnit source)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.4.21/html/gapi/org/codehaus/groovy/transform/TimedInterruptibleASTTransformation.html