Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.eclipse.jdt.internal.compiler.env
Interface ICompilationUnit  view ICompilationUnit download ICompilationUnit.java

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.
 
Methods inherited from interface org.eclipse.jdt.internal.compiler.env.IDependent
getFileName
 

Method Detail

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}.