| org.eclipse.jdt.internal.compiler.env.ICompilationUnit
All known Subclasses: org.eclipse.jdt.internal.core.jdom.CompilationUnit, org.eclipse.jdt.internal.core.CompilationUnit, org.eclipse.jdt.internal.compiler.batch.CompilationUnit, org.eclipse.jdt.internal.core.BasicCompilationUnit, org.eclipse.jdt.internal.core.builder.SourceFile,
ICompilationUnit | public interface ICompilationUnit extends IDependent(Code) | | 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 | char[] getContents()(Code) | | 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.
Implementors must never return null - return an empty char[] instead,
CharOperation.NO_CHAR being the candidate of choice.
|
getMainTypeName | char[] getMainTypeName()(Code) | | Answer the name of the top level public type.
For example, {Hashtable}.
|
getPackageName | char[][] getPackageName()(Code) | | Answer the name of the package according to the directory structure
or null if package consistency checks should be ignored.
For example, {java, lang}.
|
|
|