Uses of Interface
org.aspectj.org.eclipse.jdt.core.ICompilationUnit
Packages that use ICompilationUnit
Package
Description
The Java model is the set of classes that model the
objects associated with creating, editing, and building a Java program.
This package contains compiler associated infrastructure APIs.
The Java DOM/AST is the set of classes that model the source code of a Java program
as a structured document.
The Java DOM/AST rewrite is the set of classes that are used to make changes to an existing DOM/AST tree.
Provides support for searching the workspace Java
elements that match a particular description.
Provides a set of tools and utilities for manipulating .class files and Java model elements.
-
Uses of ICompilationUnit in org.aspectj.org.eclipse.jdt.core
Fields in org.aspectj.org.eclipse.jdt.core declared as ICompilationUnitModifier and TypeFieldDescriptionprotected ICompilationUnitCorrectionEngine.compilationUnitThis field is not intended to be used by client.Methods in org.aspectj.org.eclipse.jdt.core that return ICompilationUnitModifier and TypeMethodDescriptionIClassFile.becomeWorkingCopy(IProblemRequestor problemRequestor, WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor) Deprecated.IPackageFragment.createCompilationUnit(String name, String contents, boolean force, org.eclipse.core.runtime.IProgressMonitor monitor) Creates and returns a compilation unit in this package fragment with the specified name and contents.static ICompilationUnitJavaCore.createCompilationUnitFrom(org.eclipse.core.resources.IFile file) Creates and returns a compilation unit element for the given source file (i.e.ICompilationUnit.findWorkingCopy(WorkingCopyOwner owner) Finds the working copy for this compilation unit, given aWorkingCopyOwner.IMember.getCompilationUnit()Returns the compilation unit in which this member is declared, ornullif this member is not declared in a compilation unit (for example, a binary type).IPackageFragment.getCompilationUnit(String name) Returns the compilation unit with the specified name in this package (for example,"Object.java").IPackageFragment.getCompilationUnits()Returns all of the compilation units in this package fragment.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.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.getWorkingCopy(WorkingCopyOwner owner, IProblemRequestor problemRequestor, org.eclipse.core.runtime.IProgressMonitor monitor) Deprecated.ICompilationUnit.getWorkingCopy(org.eclipse.core.runtime.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.ITypeRoot.getWorkingCopy(WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor) Returns a shared working copy on this compilation unit or class file using the given working copy owner to create the buffer.final ICompilationUnitWorkingCopyOwner.newWorkingCopy(String name, IClasspathEntry[] classpath, IProblemRequestor problemRequestor, org.eclipse.core.runtime.IProgressMonitor monitor) Deprecated.final ICompilationUnitWorkingCopyOwner.newWorkingCopy(String name, IClasspathEntry[] classpath, org.eclipse.core.runtime.IProgressMonitor monitor) Returns a new working copy with the given name using this working copy owner to create its buffer.Methods in org.aspectj.org.eclipse.jdt.core with parameters of type ICompilationUnitModifier and TypeMethodDescriptionvoidCorrectionEngine.computeCorrections(IProblem problem, ICompilationUnit targetUnit, ICorrectionRequestor requestor) Performs code correction for the given IProblem, reporting results to the given correction requestor.voidCorrectionEngine.computeCorrections(org.eclipse.core.resources.IMarker marker, ICompilationUnit targetUnit, int positionOffset, ICorrectionRequestor requestor) Performs code correction for the given marker, reporting results to the given correction requestor.WorkingCopyOwner.createBuffer(ICompilationUnit workingCopy) Creates a buffer for the given working copy.WorkingCopyOwner.getProblemRequestor(ICompilationUnit workingCopy) Returns the problem requestor used by a working copy of this working copy owner.IType.newSupertypeHierarchy(ICompilationUnit[] workingCopies, org.eclipse.core.runtime.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.IType.newTypeHierarchy(ICompilationUnit[] workingCopies, org.eclipse.core.runtime.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.aspectj.org.eclipse.jdt.core.compiler
Methods in org.aspectj.org.eclipse.jdt.core.compiler that return ICompilationUnitModifier and TypeMethodDescriptionReconcileContext.getWorkingCopy()Returns the working copy this context refers to. -
Uses of ICompilationUnit in org.aspectj.org.eclipse.jdt.core.dom
Methods in org.aspectj.org.eclipse.jdt.core.dom with parameters of type ICompilationUnitModifier and TypeMethodDescriptionvoidASTRequestor.acceptAST(ICompilationUnit source, CompilationUnit ast) Accepts an AST corresponding to the compilation unit.voidASTParser.createASTs(ICompilationUnit[] compilationUnits, String[] bindingKeys, ASTRequestor requestor, org.eclipse.core.runtime.IProgressMonitor monitor) Creates ASTs for a batch of compilation units.static CompilationUnitAST.parseCompilationUnit(ICompilationUnit unit, boolean resolveBindings) Deprecated.UseASTParserinstead.voidASTParser.setSource(ICompilationUnit source) Sets the source code to be parsed. -
Uses of ICompilationUnit in org.aspectj.org.eclipse.jdt.core.dom.rewrite
Methods in org.aspectj.org.eclipse.jdt.core.dom.rewrite that return ICompilationUnitModifier and TypeMethodDescriptionImportRewrite.getCompilationUnit()The compilation unit for which this import rewrite was created for.Methods in org.aspectj.org.eclipse.jdt.core.dom.rewrite with parameters of type ICompilationUnitModifier and TypeMethodDescriptionstatic ImportRewriteImportRewrite.create(ICompilationUnit cu, boolean restoreExistingImports) Creates anImportRewritefrom anICompilationUnit. -
Uses of ICompilationUnit in org.aspectj.org.eclipse.jdt.core.search
Constructors in org.aspectj.org.eclipse.jdt.core.search with parameters of type ICompilationUnitModifierConstructorDescriptionSearchEngine(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.aspectj.org.eclipse.jdt.core.util
Methods in org.aspectj.org.eclipse.jdt.core.util with parameters of type ICompilationUnitModifier and TypeMethodDescriptionstatic voidCompilationUnitSorter.sort(int level, ICompilationUnit compilationUnit, int[] positions, Comparator comparator, int options, org.eclipse.core.runtime.IProgressMonitor monitor) Reorders the declarations in the given compilation unit according to the specified AST level.static voidCompilationUnitSorter.sort(ICompilationUnit compilationUnit, int[] positions, Comparator comparator, int options, org.eclipse.core.runtime.IProgressMonitor monitor) Deprecated.Clients should port their code to use the new JLS3 AST API and callCompilationUnitSorter.sort(AST.JLS3, compilationUnit, positions, comparator, options, monitor)instead of using this method. -
Uses of ICompilationUnit in org.aspectj.org.eclipse.jdt.internal.codeassist
Methods in org.aspectj.org.eclipse.jdt.internal.codeassist with parameters of type ICompilationUnitModifier and TypeMethodDescriptionprotected ImportContainerCompletionUnitStructureRequestor.createImportContainer(ICompilationUnit parent) Constructors in org.aspectj.org.eclipse.jdt.internal.codeassist with parameters of type ICompilationUnitModifierConstructorDescriptionCompletionUnitStructureRequestor(ICompilationUnit unit, CompilationUnitElementInfo unitInfo, Parser parser, ASTNode assistNode, Map<JavaElement, Binding> bindingCache, Map<Binding, JavaElement> elementCache, Map<ASTNode, JavaElement> elementWithProblemCache, Map<IJavaElement, IElementInfo> newElements) -
Uses of ICompilationUnit in org.aspectj.org.eclipse.jdt.internal.codeassist.impl
Classes in org.aspectj.org.eclipse.jdt.internal.codeassist.impl that implement ICompilationUnitConstructors in org.aspectj.org.eclipse.jdt.internal.codeassist.impl with parameters of type ICompilationUnitModifierConstructorDescriptionAssistCompilationUnit(ICompilationUnit compilationUnit, WorkingCopyOwner owner, Map<JavaElement, Binding> bindingCache, Map<IJavaElement, IElementInfo> infoCache) -
Uses of ICompilationUnit in org.aspectj.org.eclipse.jdt.internal.core
Classes in org.aspectj.org.eclipse.jdt.internal.core that implement ICompilationUnitModifier and TypeClassDescriptionclassA working copy on anIClassFile.classFields in org.aspectj.org.eclipse.jdt.internal.core declared as ICompilationUnitModifier and TypeFieldDescriptionprotected static final ICompilationUnit[]PackageFragment.NO_COMPILATION_UNITSConstant empty list of compilation unitsstatic final ICompilationUnit[]JavaModelManager.NO_WORKING_COPYprotected ICompilationUnitCompilationUnitStructureRequestor.unitThe handle to the compilation unit being parsedprotected ICompilationUnit[]SearchableEnvironment.workingCopiesFields in org.aspectj.org.eclipse.jdt.internal.core with type parameters of type ICompilationUnitMethods in org.aspectj.org.eclipse.jdt.internal.core that return ICompilationUnitModifier and TypeMethodDescriptionAbstractClassFile.becomeWorkingCopy(IProblemRequestor problemRequestor, WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor) PackageFragment.createCompilationUnit(String cuName, String contents, boolean force, org.eclipse.core.runtime.IProgressMonitor monitor) static ICompilationUnitJavaModelManager.createCompilationUnitFrom(org.eclipse.core.resources.IFile file, IJavaProject project) Creates and returns a compilation unit element for the given.javafile, its project being the given project.NameLookup.findCompilationUnit(String qualifiedTypeName) Returns theICompilationUnitwhich defines the type namedqualifiedTypeName, ornullif none exists.CompilationUnit.findWorkingCopy(WorkingCopyOwner workingCopyOwner) protected ICompilationUnitCreateCompilationUnitOperation.getCompilationUnit()protected ICompilationUnitCreateElementInCUOperation.getCompilationUnit()Returns the compilation unit in which the new element is being created.JavaElement.getCompilationUnit()PackageFragment.getCompilationUnit(String cuName) SourceRefElement.getCompilationUnit()protected ICompilationUnitJavaModelOperation.getCompilationUnitFor(IJavaElement element) Returns the compilation unit the given element is contained in, or the element itself (if it is a compilation unit), otherwisenull.PackageFragment.getCompilationUnits()PackageFragment.getCompilationUnits(WorkingCopyOwner owner) CompilationUnit.getPrimary()JavaModelManager.getWorkingCopies(WorkingCopyOwner owner, boolean addPrimary) ClassFile.getWorkingCopy(WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor) CompilationUnit.getWorkingCopy(WorkingCopyOwner workingCopyOwner, IProblemRequestor problemRequestor, org.eclipse.core.runtime.IProgressMonitor monitor) Deprecated.CompilationUnit.getWorkingCopy(WorkingCopyOwner workingCopyOwner, org.eclipse.core.runtime.IProgressMonitor monitor) CompilationUnit.getWorkingCopy(org.eclipse.core.runtime.IProgressMonitor monitor) JavaModelManager.PerWorkingCopyInfo.getWorkingCopy()ModularClassFile.getWorkingCopy(WorkingCopyOwner owner, org.eclipse.core.runtime.IProgressMonitor monitor) Methods in org.aspectj.org.eclipse.jdt.internal.core with parameters of type ICompilationUnitModifier and TypeMethodDescriptionprotected voidJavaModelOperation.addReconcileDelta(ICompilationUnit workingCopy, IJavaElementDelta delta) protected voidJavaModelOperation.applyTextEdit(ICompilationUnit cu, org.eclipse.text.edits.TextEdit edits) BufferFactoryWrapper.createBuffer(ICompilationUnit workingCopy) Deprecated.DefaultWorkingCopyOwner.createBuffer(ICompilationUnit workingCopy) protected ImportContainerCompilationUnitStructureRequestor.createImportContainer(ICompilationUnit parent) protected abstract ASTNodeCreateElementInCUOperation.generateElementAST(ASTRewrite rewriter, ICompilationUnit cu) protected ASTNodeCreateFieldOperation.generateElementAST(ASTRewrite rewriter, ICompilationUnit cu) protected ASTNodeCreateImportOperation.generateElementAST(ASTRewrite rewriter, ICompilationUnit cu) protected ASTNodeCreateInitializerOperation.generateElementAST(ASTRewrite rewriter, ICompilationUnit cu) protected ASTNodeCreateMethodOperation.generateElementAST(ASTRewrite rewriter, ICompilationUnit cu) protected ASTNodeCreatePackageDeclarationOperation.generateElementAST(ASTRewrite rewriter, ICompilationUnit cu) protected ASTNodeCreateTypeMemberOperation.generateElementAST(ASTRewrite rewriter, ICompilationUnit cu) protected ASTNodeCreateTypeOperation.generateElementAST(ASTRewrite rewriter, ICompilationUnit cu) protected voidCreateElementInCUOperation.generateNewCompilationUnitAST(ICompilationUnit cu) protected org.eclipse.jface.text.IDocumentJavaModelOperation.getDocument(ICompilationUnit cu) protected booleanNameLookup.nameMatches(String searchName, ICompilationUnit cu, boolean partialMatch) Returns true if the given cu's name matches the specifiedsearchName, otherwise false.JavaProject.newNameLookup(ICompilationUnit[] workingCopies) JavaProject.newNameLookup(ICompilationUnit[] workingCopies, boolean excludeTestCode) JavaProject.newSearchableNameEnvironment(ICompilationUnit[] workingCopies) JavaProject.newSearchableNameEnvironment(ICompilationUnit[] workingCopies, boolean excludeTestCode) BinaryType.newSupertypeHierarchy(ICompilationUnit[] workingCopies, org.eclipse.core.runtime.IProgressMonitor monitor) SourceType.newSupertypeHierarchy(ICompilationUnit[] workingCopies, org.eclipse.core.runtime.IProgressMonitor monitor) BinaryType.newTypeHierarchy(ICompilationUnit[] workingCopies, org.eclipse.core.runtime.IProgressMonitor monitor) SourceType.newTypeHierarchy(ICompilationUnit[] workingCopies, org.eclipse.core.runtime.IProgressMonitor monitor) protected CompilationUnitCreateElementInCUOperation.parse(ICompilationUnit cu) protected voidJavaModelOperation.removeReconcileDelta(ICompilationUnit workingCopy) Constructors in org.aspectj.org.eclipse.jdt.internal.core with parameters of type ICompilationUnitModifierConstructorDescriptionCommitWorkingCopyOperation(ICompilationUnit element, boolean force) Constructs an operation to commit the contents of a working copy to its original compilation unit.protectedCompilationUnitStructureRequestor(ICompilationUnit unit, CompilationUnitElementInfo unitInfo, Map<IJavaElement, IElementInfo> newElements) CreateImportOperation(String importName, ICompilationUnit parentElement, int flags) When executed, this operation will add an import to the given compilation unit.CreatePackageDeclarationOperation(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(JavaProject rootProject, IPackageFragmentRoot[] packageFragmentRoots, HashtableOfArrayToObject packageFragments, ICompilationUnit[] workingCopies, Map rootToResolvedEntries) SearchableEnvironment(JavaProject project, ICompilationUnit[] workingCopies) Deprecated.SearchableEnvironment(JavaProject project, ICompilationUnit[] workingCopies, boolean excludeTestCode) Creates a SearchableEnvironment on the given project -
Uses of ICompilationUnit in org.aspectj.org.eclipse.jdt.internal.core.dom.rewrite.imports
Constructors in org.aspectj.org.eclipse.jdt.internal.core.dom.rewrite.imports with parameters of type ICompilationUnitModifierConstructorDescriptionImportRewriteAnalyzer(ICompilationUnit cu, CompilationUnit astRoot, ImportRewriteConfiguration configuration) -
Uses of ICompilationUnit in org.aspectj.org.eclipse.jdt.internal.core.hierarchy
Fields in org.aspectj.org.eclipse.jdt.internal.core.hierarchy declared as ICompilationUnitMethods in org.aspectj.org.eclipse.jdt.internal.core.hierarchy with parameters of type ICompilationUnitModifier and TypeMethodDescriptionvoidChangeCollector.addChange(ICompilationUnit cu, IJavaElementDelta newDelta) Constructors in org.aspectj.org.eclipse.jdt.internal.core.hierarchy with parameters of type ICompilationUnitModifierConstructorDescriptionRegionBasedTypeHierarchy(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.aspectj.org.eclipse.jdt.internal.core.search
Constructors in org.aspectj.org.eclipse.jdt.internal.core.search with parameters of type ICompilationUnit -
Uses of ICompilationUnit in org.aspectj.org.eclipse.jdt.internal.core.search.matching
Fields in org.aspectj.org.eclipse.jdt.internal.core.search.matching declared as ICompilationUnitModifier and TypeFieldDescriptionMatchLocator.workingCopiesMatchLocator.WorkingCopyDocument.workingCopyMethods in org.aspectj.org.eclipse.jdt.internal.core.search.matching that return types with arguments of type ICompilationUnitModifier and TypeMethodDescriptionstatic Map<String, ICompilationUnit> JavaSearchNameEnvironment.getWorkingCopyMap(ICompilationUnit[] copies) Methods in org.aspectj.org.eclipse.jdt.internal.core.search.matching with parameters of type ICompilationUnitModifier and TypeMethodDescriptionstatic SearchDocument[]MatchLocator.addWorkingCopies(SearchPattern pattern, SearchDocument[] indexMatches, ICompilationUnit[] copies, SearchParticipant participant) protected CompilationUnitDeclarationSuperTypeNamesCollector.buildBindings(ICompilationUnit compilationUnit, boolean isTopLevelOrMember) static INameEnvironmentJavaSearchNameEnvironment.createWithReferencedProjects(IJavaProject javaProject, List<IJavaProject> referencedProjects, ICompilationUnit[] copies) static Map<String, ICompilationUnit> JavaSearchNameEnvironment.getWorkingCopyMap(ICompilationUnit[] copies) Constructors in org.aspectj.org.eclipse.jdt.internal.core.search.matching with parameters of type ICompilationUnitModifierConstructorDescriptionJavaSearchNameEnvironment(IJavaProject javaProject, ICompilationUnit[] copies) -
Uses of ICompilationUnit in org.aspectj.org.eclipse.jdt.internal.core.util
Methods in org.aspectj.org.eclipse.jdt.internal.core.util with parameters of type ICompilationUnitModifier and TypeMethodDescriptionHandleFactory.createElement(ClassScope scope, ICompilationUnit unit, HashSet existingElements, HashMap knownScopes) Returns a handle denoting the class member identified by its scope.HandleFactory.createElement(Scope scope, int elementPosition, ICompilationUnit unit, HashSet existingElements, HashMap knownScopes) Create handle by adding child to parent obtained by recursing into parent scopes.HandleFactory.createLambdaTypeElement(LambdaExpression expression, ICompilationUnit unit, HashSet existingElements, HashMap knownScopes) Returns a handle denoting the lambda type identified by its scope.
ITypeRoot.getWorkingCopy(WorkingCopyOwner, IProgressMonitor)instead.