|
Groovy Documentation | |||||||
| 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 extends ClassCodeVisitorSupport
A visitor which collects the list of variable expressions which are closure shared.
| Constructor Summary | |
SharedVariableCollector(SourceUnit unit)
|
|
| Method Summary | |
|---|---|
java.util.Set
|
getClosureSharedExpressions()
|
protected SourceUnit
|
getSourceUnit()
|
void
|
visitVariableExpression(VariableExpression expression)
|
| Methods inherited from class java.lang.Object | |
|---|---|
| java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
| Constructor Detail |
|---|
public SharedVariableCollector(SourceUnit unit)
| Method Detail |
|---|
public java.util.Set getClosureSharedExpressions()
@java.lang.Override protected SourceUnit getSourceUnit()
@java.lang.Override public void visitVariableExpression(VariableExpression expression)
Groovy Documentation