Groovy 2.2.1

org.codehaus.groovy.transform
[Groovy] Class TimedInterruptibleASTTransformation

java.lang.Object
  org.codehaus.groovy.transform.TimedInterruptibleASTTransformation
All Implemented Interfaces:
ASTTransformation

@GroovyASTTransformation(phase = CompilePhase.CANONICALIZATION)
class TimedInterruptibleASTTransformation
extends Object

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


Method Summary
static def getConstantAnnotationParameter(AnnotationNode node, String parameterName, Class type, def defaultValue)

void visit(ASTNode[] nodes, SourceUnit source)

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Method Detail

getConstantAnnotationParameter

static def getConstantAnnotationParameter(AnnotationNode node, String parameterName, Class type, def defaultValue)


visit

void visit(ASTNode[] nodes, SourceUnit source)


 

Copyright © 2003-2013 The Codehaus. All rights reserved.