Uses of Interface
org.eclipse.jdt.core.ICompilationUnit

Packages that use ICompilationUnit
org.eclipse.jdt.core   
org.eclipse.jdt.core.compiler   
org.eclipse.jdt.core.dom   
org.eclipse.jdt.core.dom.rewrite   
org.eclipse.jdt.core.search   
org.eclipse.jdt.core.util   
org.eclipse.jdt.internal.codeassist   
org.eclipse.jdt.internal.codeassist.impl   
org.eclipse.jdt.internal.core   
org.eclipse.jdt.internal.core.dom.rewrite   
org.eclipse.jdt.internal.core.hierarchy   
org.eclipse.jdt.internal.core.search   
org.eclipse.jdt.internal.core.search.matching   
org.eclipse.jdt.internal.core.util   
 

Uses of ICompilationUnit in org.eclipse.jdt.core
 

Fields in org.eclipse.jdt.core declared as ICompilationUnit
protected  ICompilationUnit CorrectionEngine.compilationUnit
          This field is not intended to be used by client.
 

Methods in org.eclipse.jdt.core that return ICompilationUnit
 ICompilationUnit IClassFile.becomeWorkingCopy(IProblemRequestor problemRequestor, WorkingCopyOwner owner, IProgressMonitor monitor)
          Deprecated. Use ITypeRoot.getWorkingCopy(WorkingCopyOwner, IProgressMonitor) instead. Note that if this deprecated method is used, problems will be reported to the given problem requestor as well as the problem requestor returned by the working copy owner (if not null).
 ICompilationUnit IPackageFragment.createCompilationUnit(java.lang.String name, java.lang.String contents, boolean force, IProgressMonitor monitor)
          Creates and returns a compilation unit in this package fragment with the specified name and contents.
static ICompilationUnit JavaCore.createCompilationUnitFrom(IFile file)
          Creates and returns a compilation unit element for the given source file (i.e.
 ICompilationUnit ICompilationUnit.findWorkingCopy(WorkingCopyOwner owner)
          Finds the working copy for this compilation unit, given a WorkingCopyOwner.
 ICompilationUnit IMember.getCompilationUnit()
          Returns the compilation unit in which this member is declared, or null if this member is not declared in a compilation unit (for example, a binary type).
 ICompilationUnit IPackageFragment.getCompilationUnit(java.lang.String name)
          Returns the compilation unit with the specified name in this package (for example, "Object.java").
 ICompilationUnit[] IPackageFragment.getCompilationUnits()
          Returns all of the compilation units in this package fragment.
 ICompilationUnit[] IPackageFragment.getCompilationUnits(WorkingCopyOwner owner)
          Returns all of the compilation units in this package fragment that are in working copy mode and that have the given owner.
 ICompilationUnit ICompilationUnit.getPrimary()
          Returns the primary compilation unit (whose owner is the primary owner) this working copy was created from, or this compilation unit if this a primary compilation unit.
static ICompilationUnit[] JavaCore.getWorkingCopies(WorkingCopyOwner owner)
          Returns the working copies that have the given owner.
 ICompilationUnit ICompilationUnit.getWorkingCopy(IProgressMonitor monitor)
          Returns a new working copy of this compilation unit if it is a primary compilation unit, or this compilation unit if it is already a non-primary working copy.
 ICompilationUnit ICompilationUnit.getWorkingCopy(WorkingCopyOwner owner, IProblemRequestor problemRequestor, IProgressMonitor monitor)
          Deprecated. Use ITypeRoot.getWorkingCopy(WorkingCopyOwner, IProgressMonitor) instead. Note that if this deprecated method is used, problems will be reported on the passed problem requester as well as on the problem requestor returned by the working copy owner (if not null).
 ICompilationUnit ITypeRoot.getWorkingCopy(WorkingCopyOwner owner, IProgressMonitor monitor)
          Returns a shared working copy on this compilation unit or class file using the given working copy owner to create the buffer.
 ICompilationUnit WorkingCopyOwner.newWorkingCopy(java.lang.String name, IClasspathEntry[] classpath, IProblemRequestor problemRequestor, IProgressMonitor monitor)
          Deprecated. Use WorkingCopyOwner.newWorkingCopy(String, IClasspathEntry[], IProgressMonitor) instead. Note that if this deprecated method is used, problems may be reported twice if the given requestor is not the same as the current working copy owner one.
 ICompilationUnit WorkingCopyOwner.newWorkingCopy(java.lang.String name, IClasspathEntry[] classpath, IProgressMonitor monitor)
          Returns a new working copy with the given name using this working copy owner to create its buffer.
 

Methods in org.eclipse.jdt.core with parameters of type ICompilationUnit
 void CorrectionEngine.computeCorrections(IMarker marker, ICompilationUnit targetUnit, int positionOffset, ICorrectionRequestor requestor)
          Performs code correction for the given marker, reporting results to the given correction requestor.
 void CorrectionEngine.computeCorrections(IProblem problem, ICompilationUnit targetUnit, ICorrectionRequestor requestor)
          Performs code correction for the given IProblem, reporting results to the given correction requestor.
 IBuffer WorkingCopyOwner.createBuffer(ICompilationUnit workingCopy)
          Creates a buffer for the given working copy.
 IProblemRequestor WorkingCopyOwner.getProblemRequestor(ICompilationUnit workingCopy)
          Returns the problem requestor used by a working copy of this working copy owner.
 ITypeHierarchy IType.newSupertypeHierarchy(ICompilationUnit[] workingCopies, IProgressMonitor monitor)
          Creates and returns a type hierarchy for this type containing this type and all of its supertypes, considering types in the given working copies.
 ITypeHierarchy IType.newTypeHierarchy(ICompilationUnit[] workingCopies, IProgressMonitor monitor)
          Creates and returns a type hierarchy for this type containing this type, all of its supertypes, and all its subtypes in the workspace, considering types in the given working copies.
 

Uses of ICompilationUnit in org.eclipse.jdt.core.compiler
 

Methods in org.eclipse.jdt.core.compiler that return ICompilationUnit
 ICompilationUnit ReconcileContext.getWorkingCopy()
          Returns the working copy this context refers to.
 

Uses of ICompilationUnit in org.eclipse.jdt.core.dom
 

Methods in org.eclipse.jdt.core.dom with parameters of type ICompilationUnit
 void ASTRequestor.acceptAST(ICompilationUnit source, CompilationUnit ast)
          Accepts an AST corresponding to the compilation unit.
 void ASTParser.createASTs(ICompilationUnit[] compilationUnits, java.lang.String[] bindingKeys, ASTRequestor requestor, IProgressMonitor monitor)
          Creates ASTs for a batch of compilation units.
static CompilationUnit AST.parseCompilationUnit(ICompilationUnit unit, boolean resolveBindings)
          Deprecated. Use ASTParser instead.
 void ASTParser.setSource(ICompilationUnit source)
          Sets the source code to be parsed.
 

Uses of ICompilationUnit in org.eclipse.jdt.core.dom.rewrite
 

Methods in org.eclipse.jdt.core.dom.rewrite that return ICompilationUnit
 ICompilationUnit ImportRewrite.getCompilationUnit()
          The compilation unit for which this import rewrite was created for.
 

Methods in org.eclipse.jdt.core.dom.rewrite with parameters of type ICompilationUnit
static ImportRewrite ImportRewrite.create(ICompilationUnit cu, boolean restoreExistingImports)
          Creates a ImportRewrite from a ICompilationUnit.
 

Uses of ICompilationUnit in org.eclipse.jdt.core.search
 

Constructors in org.eclipse.jdt.core.search with parameters of type ICompilationUnit
SearchEngine(ICompilationUnit[] workingCopies)
          Creates a new search engine with a list of working copies that will take precedence over their original compilation units in the subsequent search operations.
 

Uses of ICompilationUnit in org.eclipse.jdt.core.util
 

Methods in org.eclipse.jdt.core.util with parameters of type ICompilationUnit
static void CompilationUnitSorter.sort(ICompilationUnit compilationUnit, int[] positions, java.util.Comparator comparator, int options, IProgressMonitor monitor)
          Deprecated. Clients should port their code to use the new JLS3 AST API and call CompilationUnitSorter.sort(AST.JLS3, compilationUnit, positions, comparator, options, monitor) instead of using this method.
static void CompilationUnitSorter.sort(int level, ICompilationUnit compilationUnit, int[] positions, java.util.Comparator comparator, int options, IProgressMonitor monitor)
          Reorders the declarations in the given compilation unit according to the specified AST level.
 

Uses of ICompilationUnit in org.eclipse.jdt.internal.codeassist
 

Methods in org.eclipse.jdt.internal.codeassist with parameters of type ICompilationUnit
protected  ImportContainer CompletionUnitStructureRequestor.createImportContainer(ICompilationUnit parent)
           
 

Constructors in org.eclipse.jdt.internal.codeassist with parameters of type ICompilationUnit
CompletionUnitStructureRequestor(ICompilationUnit unit, CompilationUnitElementInfo unitInfo, Parser parser, ASTNode assistNode, java.util.Map bindingCache, java.util.Map elementCache, java.util.Map elementWithProblemCache, java.util.Map newElements)
           
 

Uses of ICompilationUnit in org.eclipse.jdt.internal.codeassist.impl
 

Constructors in org.eclipse.jdt.internal.codeassist.impl with parameters of type ICompilationUnit
AssistCompilationUnit(ICompilationUnit compilationUnit, WorkingCopyOwner owner, java.util.Map bindingCache, java.util.Map infoCache)
           
 

Uses of ICompilationUnit in org.eclipse.jdt.internal.core
 

Fields in org.eclipse.jdt.internal.core declared as ICompilationUnit
protected static ICompilationUnit[] PackageFragment.NO_COMPILATION_UNITS
          Constant empty list of compilation units
static ICompilationUnit[] JavaModelManager.NO_WORKING_COPY
           
protected  ICompilationUnit CompilationUnitStructureRequestor.unit
          The handle to the compilation unit being parsed
protected  ICompilationUnit[] SearchableEnvironment.workingCopies
           
 

Methods in org.eclipse.jdt.internal.core that return ICompilationUnit
 ICompilationUnit ClassFile.becomeWorkingCopy(IProblemRequestor problemRequestor, WorkingCopyOwner owner, IProgressMonitor monitor)
           
 ICompilationUnit PackageFragment.createCompilationUnit(java.lang.String cuName, java.lang.String contents, boolean force, IProgressMonitor monitor)
           
static ICompilationUnit JavaModelManager.createCompilationUnitFrom(IFile file, IJavaProject project)
          Creates and returns a compilation unit element for the given .java file, its project being the given project.
 ICompilationUnit NameLookup.findCompilationUnit(java.lang.String qualifiedTypeName)
          Returns the ICompilationUnit which defines the type named qualifiedTypeName, or null if none exists.
 ICompilationUnit CompilationUnit.findWorkingCopy(WorkingCopyOwner workingCopyOwner)
           
protected  ICompilationUnit CreateElementInCUOperation.getCompilationUnit()
          Returns the compilation unit in which the new element is being created.
 ICompilationUnit SourceRefElement.getCompilationUnit()
           
 ICompilationUnit JavaElement.getCompilationUnit()
           
protected  ICompilationUnit CreateCompilationUnitOperation.getCompilationUnit()
           
 ICompilationUnit CompilationUnit.getCompilationUnit()
           
 ICompilationUnit PackageFragment.getCompilationUnit(java.lang.String cuName)
           
protected  ICompilationUnit JavaModelOperation.getCompilationUnitFor(IJavaElement element)
          Returns the compilation unit the given element is contained in, or the element itself (if it is a compilation unit), otherwise null.
 ICompilationUnit[] PackageFragment.getCompilationUnits()
           
 ICompilationUnit[] PackageFragment.getCompilationUnits(WorkingCopyOwner owner)
           
 ICompilationUnit CompilationUnit.getPrimary()
           
 ICompilationUnit[] JavaModelManager.getWorkingCopies(WorkingCopyOwner owner, boolean addPrimary)
           
 ICompilationUnit JavaModelManager.PerWorkingCopyInfo.getWorkingCopy()
           
 ICompilationUnit CompilationUnit.getWorkingCopy(IProgressMonitor monitor)
           
 ICompilationUnit CompilationUnit.getWorkingCopy(WorkingCopyOwner workingCopyOwner, IProblemRequestor problemRequestor, IProgressMonitor monitor)
          Deprecated.  
 ICompilationUnit ClassFile.getWorkingCopy(WorkingCopyOwner owner, IProgressMonitor monitor)
           
 ICompilationUnit CompilationUnit.getWorkingCopy(WorkingCopyOwner workingCopyOwner, IProgressMonitor monitor)
           
 

Methods in org.eclipse.jdt.internal.core with parameters of type ICompilationUnit
protected  void JavaModelOperation.addReconcileDelta(ICompilationUnit workingCopy, IJavaElementDelta delta)
           
protected  void JavaModelOperation.applyTextEdit(ICompilationUnit cu, TextEdit edits)
           
 IBuffer DefaultWorkingCopyOwner.createBuffer(ICompilationUnit workingCopy)
           
 IBuffer BufferFactoryWrapper.createBuffer(ICompilationUnit workingCopy)
          Deprecated.  
protected  ImportContainer CompilationUnitStructureRequestor.createImportContainer(ICompilationUnit parent)
           
protected  ASTNode CreateTypeOperation.generateElementAST(ASTRewrite rewriter, ICompilationUnit cu)
           
protected  ASTNode CreateFieldOperation.generateElementAST(ASTRewrite rewriter, ICompilationUnit cu)
           
protected  ASTNode CreateImportOperation.generateElementAST(ASTRewrite rewriter, ICompilationUnit cu)
           
protected  ASTNode CreateInitializerOperation.generateElementAST(ASTRewrite rewriter, ICompilationUnit cu)
           
protected  ASTNode CreateMethodOperation.generateElementAST(ASTRewrite rewriter, ICompilationUnit cu)
           
protected  ASTNode CreateTypeMemberOperation.generateElementAST(ASTRewrite rewriter, ICompilationUnit cu)
           
protected abstract  ASTNode CreateElementInCUOperation.generateElementAST(ASTRewrite rewriter, ICompilationUnit cu)
           
protected  ASTNode CreatePackageDeclarationOperation.generateElementAST(ASTRewrite rewriter, ICompilationUnit cu)
           
protected  void CreateElementInCUOperation.generateNewCompilationUnitAST(ICompilationUnit cu)
           
protected  IDocument JavaModelOperation.getDocument(ICompilationUnit cu)
           
protected  boolean NameLookup.nameMatches(java.lang.String searchName, ICompilationUnit cu, boolean partialMatch)
          Returns true if the given cu's name matches the specified searchName, otherwise false.
 NameLookup JavaProject.newNameLookup(ICompilationUnit[] workingCopies)
           
 SearchableEnvironment JavaProject.newSearchableNameEnvironment(ICompilationUnit[] workingCopies)
           
 ITypeHierarchy SourceType.newSupertypeHierarchy(ICompilationUnit[] workingCopies, IProgressMonitor monitor)
           
 ITypeHierarchy BinaryType.newSupertypeHierarchy(ICompilationUnit[] workingCopies, IProgressMonitor monitor)
           
 ITypeHierarchy SourceType.newTypeHierarchy(ICompilationUnit[] workingCopies, IProgressMonitor monitor)
           
 ITypeHierarchy BinaryType.newTypeHierarchy(ICompilationUnit[] workingCopies, IProgressMonitor monitor)
           
protected  CompilationUnit CreateElementInCUOperation.parse(ICompilationUnit cu)
           
protected  void JavaModelOperation.removeReconcileDelta(ICompilationUnit workingCopy)
           
 

Constructors in org.eclipse.jdt.internal.core with parameters of type ICompilationUnit
CommitWorkingCopyOperation(ICompilationUnit element, boolean force)
          Constructs an operation to commit the contents of a working copy to its original compilation unit.
CompilationUnitStructureRequestor(ICompilationUnit unit, CompilationUnitElementInfo unitInfo, java.util.Map newElements)
           
CreateImportOperation(java.lang.String importName, ICompilationUnit parentElement, int flags)
          When executed, this operation will add an import to the given compilation unit.
CreatePackageDeclarationOperation(java.lang.String name, ICompilationUnit parentElement)
          When executed, this operation will add a package declaration to the given compilation unit.
CreateTypeHierarchyOperation(IRegion region, ICompilationUnit[] workingCopies, IType element, boolean computeSubtypes)
          Constructs an operation to create a type hierarchy for the given type within the specified region, in the context of the given project.
CreateTypeHierarchyOperation(IType element, ICompilationUnit[] workingCopies, IJavaProject project, boolean computeSubtypes)
          Constructs an operation to create a type hierarchy for the given type and working copies.
CreateTypeHierarchyOperation(IType element, ICompilationUnit[] workingCopies, IJavaSearchScope scope, boolean computeSubtypes)
          Constructs an operation to create a type hierarchy for the given type and working copies.
NameLookup(IPackageFragmentRoot[] packageFragmentRoots, HashtableOfArrayToObject packageFragments, ICompilationUnit[] workingCopies, java.util.Map rootToResolvedEntries)
           
SearchableEnvironment(JavaProject project, ICompilationUnit[] workingCopies)
          Creates a SearchableEnvironment on the given project
 

Uses of ICompilationUnit in org.eclipse.jdt.internal.core.dom.rewrite
 

Constructors in org.eclipse.jdt.internal.core.dom.rewrite with parameters of type ICompilationUnit
ImportRewriteAnalyzer(ICompilationUnit cu, CompilationUnit root, java.lang.String[] importOrder, int threshold, int staticThreshold, boolean restoreExistingImports, boolean useContextToFilterImplicitImports)
           
 

Uses of ICompilationUnit in org.eclipse.jdt.internal.core.hierarchy
 

Fields in org.eclipse.jdt.internal.core.hierarchy declared as ICompilationUnit
protected  ICompilationUnit[] TypeHierarchy.workingCopies
           
 

Methods in org.eclipse.jdt.internal.core.hierarchy with parameters of type ICompilationUnit
 void ChangeCollector.addChange(ICompilationUnit cu, IJavaElementDelta newDelta)
           
 

Constructors in org.eclipse.jdt.internal.core.hierarchy with parameters of type ICompilationUnit
RegionBasedTypeHierarchy(IRegion region, ICompilationUnit[] workingCopies, IType type, boolean computeSubtypes)
          Creates a TypeHierarchy on the types in the specified region, considering first the given working copies, using the projects in the given region for a name lookup context.
TypeHierarchy(IType type, ICompilationUnit[] workingCopies, IJavaProject project, boolean computeSubtypes)
          Creates a TypeHierarchy on the given type.
TypeHierarchy(IType type, ICompilationUnit[] workingCopies, IJavaSearchScope scope, boolean computeSubtypes)
          Creates a TypeHierarchy on the given type.
 

Uses of ICompilationUnit in org.eclipse.jdt.internal.core.search
 

Constructors in org.eclipse.jdt.internal.core.search with parameters of type ICompilationUnit
BasicSearchEngine(ICompilationUnit[] workingCopies)
           
 

Uses of ICompilationUnit in org.eclipse.jdt.internal.core.search.matching
 

Fields in org.eclipse.jdt.internal.core.search.matching declared as ICompilationUnit
 ICompilationUnit[] MatchLocator.workingCopies
           
 ICompilationUnit MatchLocator.WorkingCopyDocument.workingCopy
           
 

Methods in org.eclipse.jdt.internal.core.search.matching with parameters of type ICompilationUnit
static SearchDocument[] MatchLocator.addWorkingCopies(SearchPattern pattern, SearchDocument[] indexMatches, ICompilationUnit[] copies, SearchParticipant participant)
           
protected  CompilationUnitDeclaration SuperTypeNamesCollector.buildBindings(ICompilationUnit compilationUnit, boolean isTopLevelOrMember)
           
 

Constructors in org.eclipse.jdt.internal.core.search.matching with parameters of type ICompilationUnit
JavaSearchNameEnvironment(IJavaProject javaProject, ICompilationUnit[] copies)
           
 

Uses of ICompilationUnit in org.eclipse.jdt.internal.core.util
 

Methods in org.eclipse.jdt.internal.core.util with parameters of type ICompilationUnit
 IJavaElement HandleFactory.createElement(ClassScope scope, ICompilationUnit unit, java.util.HashSet existingElements, java.util.HashMap knownScopes)
          Returns a handle denoting the class member identified by its scope.