public class CompilationUnit extends java.lang.Object implements ICompilationUnit
Please do not use outside of jdom.
| Modifier and Type | Field and Description |
|---|---|
protected char[] |
fContents |
protected char[] |
fFileName |
protected char[] |
fMainTypeName |
JAR_FILE_ENTRY_SEPARATOR| Constructor and Description |
|---|
CompilationUnit(char[] contents,
char[] filename) |
| Modifier and Type | Method and Description |
|---|---|
char[] |
getContents()
Answer the contents of the compilation unit.
|
char[] |
getFileName()
Answer the file name which defines the type.
|
char[] |
getMainTypeName()
Answer the name of the top level public type.
|
char[] |
getModuleName()
Returns the name of the module to which this compilation unit is associated.
|
char[][] |
getPackageName()
Answer the name of the package according to the directory structure
or null if package consistency checks should be ignored.
|
boolean |
ignoreOptionalProblems()
Answer if optional problems should be ignored for this compilation unit.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDestinationPath, moduleprotected char[] fContents
protected char[] fFileName
protected char[] fMainTypeName
public char[] getContents()
ICompilationUnitgetContents in interface ICompilationUnitpublic char[] getFileName()
IDependentgetFileName in interface IDependentIDependent.getFileName()public char[] getMainTypeName()
ICompilationUnitgetMainTypeName in interface ICompilationUnitpublic char[][] getPackageName()
ICompilationUnitgetPackageName in interface ICompilationUnitpublic boolean ignoreOptionalProblems()
ICompilationUnitfalse if there is no preference.ignoreOptionalProblems in interface ICompilationUnitpublic java.lang.String toString()
toString in class java.lang.Objectpublic char[] getModuleName()
ICompilationUnitnull signals the unnamed module.getModuleName in interface ICompilationUnitnull for the unnamed module.