|
Groovy 1.8.4 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.ast.CodeVisitorSupport
org.codehaus.groovy.ast.ClassCodeVisitorSupport
org.codehaus.groovy.transform.AbstractInterruptibleASTTransformation
org.codehaus.groovy.transform.ThreadInterruptibleASTTransformation
@GroovyASTTransformation(phase = CompilePhase.CANONICALIZATION) class ThreadInterruptibleASTTransformation extends AbstractInterruptibleASTTransformation
Allows "interrupt-safe" executions of scripts by adding Thread.currentThread().isInterrupted() 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.
Field Summary |
---|
Method Summary | |
---|---|
protected Expression
|
createCondition()
|
protected String
|
getErrorMessage()
|
protected ClassNode
|
type()
|
void
|
visitClosureExpression(ClosureExpression closureExpr)
|
void
|
visitMethod(MethodNode node)
|
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Method Detail |
---|
protected Expression createCondition()
protected String getErrorMessage()
protected ClassNode type()
@Override void visitClosureExpression(ClosureExpression closureExpr)
@Override void visitMethod(MethodNode node)
Copyright © 2003-2011 The Codehaus. All rights reserved.