|
|||||||||
PREV CLASS NEXT CLASS | 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.stc.SharedVariableCollector
public class SharedVariableCollector
A visitor which collects the list of variable expressions which are closure shared.
Constructor Summary | |
---|---|
SharedVariableCollector(SourceUnit unit)
|
Method Summary | |
---|---|
java.util.Set<VariableExpression> |
getClosureSharedExpressions()
|
protected SourceUnit |
getSourceUnit()
|
void |
visitVariableExpression(VariableExpression expression)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SharedVariableCollector(SourceUnit unit)
Method Detail |
---|
protected SourceUnit getSourceUnit()
getSourceUnit
in class ClassCodeVisitorSupport
public java.util.Set<VariableExpression> getClosureSharedExpressions()
public void visitVariableExpression(VariableExpression expression)
visitVariableExpression
in interface GroovyCodeVisitor
visitVariableExpression
in class CodeVisitorSupport
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |