|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.internal.core.BasicCompilationUnit
public class BasicCompilationUnit
A basic implementation of ICompilationUnit
for use in the SourceMapper
.
ICompilationUnit
Field Summary |
---|
Fields inherited from interface org.eclipse.jdt.internal.compiler.env.IDependent |
---|
JAR_FILE_ENTRY_SEPARATOR |
Constructor Summary | |
---|---|
BasicCompilationUnit(char[] contents,
char[][] packageName,
java.lang.String fileName)
|
|
BasicCompilationUnit(char[] contents,
char[][] packageName,
java.lang.String fileName,
IJavaElement javaElement)
|
|
BasicCompilationUnit(char[] contents,
char[][] packageName,
java.lang.String fileName,
java.lang.String encoding)
|
Method Summary | |
---|---|
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[][] |
getPackageName()
Answer the name of the package according to the directory structure or null if package consistency checks should be ignored. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BasicCompilationUnit(char[] contents, char[][] packageName, java.lang.String fileName)
public BasicCompilationUnit(char[] contents, char[][] packageName, java.lang.String fileName, java.lang.String encoding)
public BasicCompilationUnit(char[] contents, char[][] packageName, java.lang.String fileName, IJavaElement javaElement)
Method Detail |
---|
public char[] getContents()
ICompilationUnit
getContents
in interface ICompilationUnit
public char[] getFileName()
IDependent
getFileName
in interface IDependent
IDependent.getFileName()
public char[] getMainTypeName()
ICompilationUnit
getMainTypeName
in interface ICompilationUnit
public char[][] getPackageName()
ICompilationUnit
getPackageName
in interface ICompilationUnit
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |