- All Superinterfaces:
- IDependent
- public interface ICompilationUnit
- extends IDependent
This interface denotes a compilation unit, providing its name and content.
|
Method Summary |
char[] |
getContents()
Answer the contents of the compilation unit. |
char[] |
getMainTypeName()
Answer the name of the top level public type. |
char[][] |
getPackageName()
Answer the name of the package according to the directory structure
or null if package consistency checks should be ignored. |
getContents
public char[] getContents()
- Answer the contents of the compilation unit.
In normal use, the contents are requested twice.
Once during the initial lite parsing step, then again for the
more detailed parsing step.
getMainTypeName
public char[] getMainTypeName()
- Answer the name of the top level public type.
For example, {Hashtable}.
getPackageName
public char[][] getPackageName()
- Answer the name of the package according to the directory structure
or null if package consistency checks should be ignored.
For example, {java, lang}.