public class CompilationUnit extends Object implements org.eclipse.jdt.internal.compiler.env.ICompilationUnit
| Constructor and Description |
|---|
CompilationUnit(String source,
String packageName,
String simpleClassName) |
| Modifier and Type | Method and Description |
|---|---|
char[] |
getContents() |
char[] |
getFileName() |
char[] |
getMainTypeName() |
char[][] |
getPackageName() |
boolean |
ignoreOptionalProblems() |
public CompilationUnit(String source, String packageName, String simpleClassName)
source - the source text from which the class will be compiledpackageName - the name of the packagesimpleClassName - this is the name of the class without the package, but including
the parent type if the class is a nested class.public char[] getFileName()
getFileName in interface org.eclipse.jdt.internal.compiler.env.IDependentpublic char[] getContents()
getContents in interface org.eclipse.jdt.internal.compiler.env.ICompilationUnitpublic char[] getMainTypeName()
getMainTypeName in interface org.eclipse.jdt.internal.compiler.env.ICompilationUnitpublic char[][] getPackageName()
getPackageName in interface org.eclipse.jdt.internal.compiler.env.ICompilationUnitpublic boolean ignoreOptionalProblems()
ignoreOptionalProblems in interface org.eclipse.jdt.internal.compiler.env.ICompilationUnitCopyright © 2019 Glasnost. All rights reserved.