org.aspectj.org.eclipse.jdt.internal.core.util
Class ResourceCompilationUnit

java.lang.Object
  extended by org.aspectj.org.eclipse.jdt.internal.compiler.batch.CompilationUnit
      extended by org.aspectj.org.eclipse.jdt.internal.core.util.ResourceCompilationUnit
All Implemented Interfaces:
ICompilationUnit, IDependent

public class ResourceCompilationUnit
extends CompilationUnit

An ICompilationUnit that retrieves its contents using an IFile


Field Summary
 
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.batch.CompilationUnit
contents, destinationPath, fileName, mainTypeName
 
Fields inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.env.IDependent
JAR_FILE_ENTRY_SEPARATOR
 
Constructor Summary
ResourceCompilationUnit(IFile file, java.net.URI location)
           
 
Method Summary
 char[] getContents()
          Answer the contents of the compilation unit.
 
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.compiler.batch.CompilationUnit
getFileName, getMainTypeName, getPackageName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceCompilationUnit

public ResourceCompilationUnit(IFile file,
                               java.net.URI location)
Method Detail

getContents

public char[] getContents()
Description copied from interface: ICompilationUnit
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.

Specified by:
getContents in interface ICompilationUnit
Overrides:
getContents in class CompilationUnit