| java.lang.Object org.codehaus.groovy.ast.CompileUnit
CompileUnit | public class CompileUnit (Code) | | Represents the entire contents of a compilation step which consists of one
or more
ModuleNode instances
author: James Strachan version: $Revision: 4295 $ |
addClass | public void addClass(ClassNode node)(Code) | | Adds a class to the unit.
|
addClassNodeToCompile | public void addClassNodeToCompile(ClassNode node, SourceUnit location)(Code) | | 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.
|
addClasses | void addClasses(List classList)(Code) | | Appends all of the fully qualified class names in this
module into the given map
|
getClass | public ClassNode getClass(String name)(Code) | | the ClassNode for the given qualified name or returns null ifthe name does not exist in the current compilation unit(ignoring the .class files on the classpath) |
getClasses | public List getClasses()(Code) | | a list of all the classes in each module in the compilation unit |
hasClassNodeToCompile | public boolean hasClassNodeToCompile()(Code) | | |
iterateClassNodeToCompile | public Iterator iterateClassNodeToCompile()(Code) | | |
|
|