Save This Page
Home » groovy-src-1.6.3 » org.codehaus » groovy » ast » [javadoc | source]
org.codehaus.groovy.ast
public class: CompileUnit [javadoc | source]
java.lang.Object
   org.codehaus.groovy.ast.CompileUnit
Represents the entire contents of a compilation step which consists of one or more ModuleNode instances
Constructor:
 public CompileUnit(GroovyClassLoader classLoader,
    CompilerConfiguration config) 
 public CompileUnit(GroovyClassLoader classLoader,
    CodeSource codeSource,
    CompilerConfiguration config) 
Method from org.codehaus.groovy.ast.CompileUnit Summary:
addClass,   addClassNodeToCompile,   addClasses,   addModule,   getClass,   getClassLoader,   getClasses,   getCodeSource,   getConfig,   getModules,   getScriptSourceLocation,   hasClassNodeToCompile,   iterateClassNodeToCompile
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.codehaus.groovy.ast.CompileUnit Detail:
 public  void addClass(ClassNode node) 
    Adds a class to the unit.
 public  void addClassNodeToCompile(ClassNode node,
    SourceUnit location) 
    this emthod actually does not compile a class. It's only a marker that this type has to be compiled by the CompilationUnit at the end of a parse step no node should be be left.
  void addClasses(List classList) 
    Appends all of the fully qualified class names in this module into the given map
 public  void addModule(ModuleNode node) 
 public ClassNode getClass(String name) 
 public GroovyClassLoader getClassLoader() 
 public List getClasses() 
 public CodeSource getCodeSource() 
 public CompilerConfiguration getConfig() 
 public List getModules() 
 public SourceUnit getScriptSourceLocation(String className) 
 public boolean hasClassNodeToCompile() 
 public Iterator iterateClassNodeToCompile()