|
Griffon 1.2.0 | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.codehaus.groovy.control.CompilationUnit.SourceUnitOperation
org.codehaus.griffon.compiler.SourceUnitCollector
public class SourceUnitCollector extends CompilationUnit.SourceUnitOperation
Keeps track of all SourceUnits that belongs to a CompilationUnit.
| Field Summary | |
|---|---|
private static Map |
SOURCES
|
private static SourceUnitCollector |
instance
|
| Constructor Summary | |
private SourceUnitCollector()
|
|
| Method Summary | |
|---|---|
void
|
call(SourceUnit source)
|
void
|
clear()
|
boolean
|
containsSource(String name)
|
boolean
|
containsSource(SourceUnit source)
|
boolean
|
containsSource(ClassNode classNode)
|
static SourceUnitCollector
|
getInstance()
|
SourceUnit
|
getSourceUnit(ClassNode classNode)
|
| Methods inherited from class CompilationUnit.SourceUnitOperation | |
|---|---|
| call, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Field Detail |
|---|
private static final Map SOURCES
private static SourceUnitCollector instance
| Constructor Detail |
|---|
private SourceUnitCollector()
| Method Detail |
|---|
public void call(SourceUnit source)
public void clear()
public boolean containsSource(String name)
public boolean containsSource(SourceUnit source)
public boolean containsSource(ClassNode classNode)
public static SourceUnitCollector getInstance()
public SourceUnit getSourceUnit(ClassNode classNode)
Groovy Documentation