|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use ICompilationUnit | |
---|---|
org.eclipse.jdt.core | The Java model is the set of classes that model the objects associated with creating, editing, and building a Java program. |
org.eclipse.jdt.core.compiler | This package contains compiler associated infrastructure APIs. |
org.eclipse.jdt.core.dom | The Java DOM/AST is the set of classes that model the source code of a Java program as a structured document. |
org.eclipse.jdt.core.dom.rewrite | The Java DOM/AST rewrite is the set of classes that are used to make changes to an existing DOM/AST tree. |
org.eclipse.jdt.core.search | Provides support for searching the workspace Java elements that match a particular description. |
org.eclipse.jdt.core.tests.dom | |
org.eclipse.jdt.core.tests.model | |
org.eclipse.jdt.core.tests.rewrite.modifying | |
org.eclipse.jdt.core.util | Provides a set of tools and utilities for manipulating .class files and Java model elements. |
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 | |
org.jmlspecs.eclipse.jdt.ui |
Uses of ICompilationUnit in org.eclipse.jdt.core |
---|
Methods in org.eclipse.jdt.core that return ICompilationUnit | |
---|---|
ICompilationUnit |
IClassFile.becomeWorkingCopy(IProblemRequestor problemRequestor,
WorkingCopyOwner owner,
org.eclipse.core.runtime.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,
org.eclipse.core.runtime.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(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. |
ICompilationUnit |
ICompilationUnit.getWorkingCopy(WorkingCopyOwner owner,
IProblemRequestor problemRequestor,
org.eclipse.core.runtime.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,
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. |
ICompilationUnit |
WorkingCopyOwner.newWorkingCopy(java.lang.String name,
IClasspathEntry[] classpath,
IProblemRequestor problemRequestor,
org.eclipse.core.runtime.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,
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.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,
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. |
ITypeHierarchy |
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.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,
org.eclipse.core.runtime.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.tests.dom |
---|
Methods in org.eclipse.jdt.core.tests.dom with parameters of type ICompilationUnit | |
---|---|
void |
BatchASTCreationTests.TestASTRequestor.acceptAST(ICompilationUnit source,
CompilationUnit ast)
|
ASTNode |
ConverterTestSetup.runConversion(ICompilationUnit unit,
boolean resolveBindings)
|
ASTNode |
ASTConverterBugsTest.runConversion(ICompilationUnit unit,
boolean resolveBindings)
|
ASTNode |
ConverterTestSetup.runConversion(ICompilationUnit unit,
boolean resolveBindings,
boolean bindingsRecovery)
|
ASTNode |
ASTConverterBugsTest.runConversion(ICompilationUnit unit,
boolean resolveBindings,
boolean statementsRecovery,
boolean bindingsRecovery)
|
ASTNode |
ConverterTestSetup.runConversion(ICompilationUnit unit,
int position,
boolean resolveBindings)
|
ASTNode |
ASTConverterBugsTest.runConversion(ICompilationUnit unit,
int position,
boolean resolveBindings)
|
ASTNode |
ConverterTestSetup.runConversion(int astLevel,
ICompilationUnit unit,
boolean resolveBindings)
|
ASTNode |
ConverterTestSetup.runConversion(int astLevel,
ICompilationUnit unit,
boolean resolveBindings,
boolean statementsRecovery)
|
ASTNode |
ConverterTestSetup.runConversion(int astLevel,
ICompilationUnit unit,
boolean resolveBindings,
boolean statementsRecovery,
boolean bindingsRecovery)
|
ASTNode |
ConverterTestSetup.runConversion(int astLevel,
ICompilationUnit unit,
int position,
boolean resolveBindings)
|
ASTNode |
ConverterTestSetup.runJLS3Conversion(ICompilationUnit unit,
boolean resolveBindings,
boolean checkJLS2)
|
ASTNode |
ConverterTestSetup.runJLS3Conversion(ICompilationUnit unit,
boolean resolveBindings,
boolean checkJLS2,
boolean bindingRecovery)
|
Uses of ICompilationUnit in org.eclipse.jdt.core.tests.model |
---|
Methods in org.eclipse.jdt.core.tests.model that return ICompilationUnit | |
---|---|
static ICompilationUnit |
ModelTestsUtil.getCompilationUnit(IJavaProject javaProject,
java.lang.String packageName,
java.lang.String unitName)
Returns compilation unit with given name in given project and package. |
ICompilationUnit |
AbstractJavaModelTests.getCompilationUnit(java.lang.String projectName,
java.lang.String rootPath,
java.lang.String packageName,
java.lang.String cuName)
Returns the specified compilation unit in the given project, root, and package fragment or null if it does not exist. |
ICompilationUnit[] |
AbstractJavaModelTests.getCompilationUnits(java.lang.String projectName,
java.lang.String rootPath,
java.lang.String packageName)
Returns the specified compilation unit in the given project, root, and package fragment or null if it does not exist. |
ICompilationUnit |
AbstractJavaModelTests.getWorkingCopy(java.lang.String path,
boolean computeProblems)
|
ICompilationUnit |
ResolveTests_1_5.getWorkingCopy(java.lang.String path,
java.lang.String source)
|
ICompilationUnit |
ResolveTests.getWorkingCopy(java.lang.String path,
java.lang.String source)
|
ICompilationUnit |
JavaSearchFineGrainTests.getWorkingCopy(java.lang.String path,
java.lang.String source)
|
ICompilationUnit |
JavaSearchBugsTests.getWorkingCopy(java.lang.String path,
java.lang.String source)
|
ICompilationUnit |
AccessRestrictionsTests.getWorkingCopy(java.lang.String path,
java.lang.String source)
|
ICompilationUnit |
AbstractJavaModelTests.getWorkingCopy(java.lang.String path,
java.lang.String source)
|
ICompilationUnit |
AbstractJavaModelCompletionTests.getWorkingCopy(java.lang.String path,
java.lang.String source)
|
ICompilationUnit |
AbstractJavaModelTests.getWorkingCopy(java.lang.String path,
java.lang.String source,
boolean computeProblems)
|
ICompilationUnit |
AbstractJavaModelTests.getWorkingCopy(java.lang.String path,
java.lang.String source,
WorkingCopyOwner owner)
|
ICompilationUnit |
AbstractJavaModelTests.getWorkingCopy(java.lang.String path,
java.lang.String source,
WorkingCopyOwner owner,
IProblemRequestor problemRequestor)
Deprecated. |
Methods in org.eclipse.jdt.core.tests.model with parameters of type ICompilationUnit | |
---|---|
IBuffer |
WorkingCopyTests.TestWorkingCopyOwner.createBuffer(ICompilationUnit workingCopy)
|
Uses of ICompilationUnit in org.eclipse.jdt.core.tests.rewrite.modifying |
---|
Methods in org.eclipse.jdt.core.tests.rewrite.modifying with parameters of type ICompilationUnit | |
---|---|
CompilationUnit |
ASTRewritingModifyingTest.createCU(ICompilationUnit unit,
boolean resolveBindings)
|
java.lang.String |
ASTRewritingModifyingTest.evaluateRewrite(ICompilationUnit cu,
CompilationUnit astRoot)
|
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,
org.eclipse.core.runtime.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,
org.eclipse.core.runtime.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 |
---|
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 | |
---|---|
static ICompilationUnit[] |
JavaModelManager.NO_WORKING_COPY
|
Methods in org.eclipse.jdt.internal.core that return ICompilationUnit | |
---|---|
ICompilationUnit |
ClassFile.becomeWorkingCopy(IProblemRequestor problemRequestor,
WorkingCopyOwner owner,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
ICompilationUnit |
PackageFragment.createCompilationUnit(java.lang.String cuName,
java.lang.String contents,
boolean force,
org.eclipse.core.runtime.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)
|
ICompilationUnit |
JavaElement.getCompilationUnit()
|
ICompilationUnit |
CompilationUnit.getCompilationUnit()
|
ICompilationUnit |
SourceRefElement.getCompilationUnit()
|
ICompilationUnit |
PackageFragment.getCompilationUnit(java.lang.String cuName)
|
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(org.eclipse.core.runtime.IProgressMonitor monitor)
|
ICompilationUnit |
CompilationUnit.getWorkingCopy(WorkingCopyOwner workingCopyOwner,
IProblemRequestor problemRequestor,
org.eclipse.core.runtime.IProgressMonitor monitor)
Deprecated. |
ICompilationUnit |
ClassFile.getWorkingCopy(WorkingCopyOwner owner,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
ICompilationUnit |
CompilationUnit.getWorkingCopy(WorkingCopyOwner workingCopyOwner,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
Methods in org.eclipse.jdt.internal.core with parameters of type ICompilationUnit | |
---|---|
IBuffer |
DefaultWorkingCopyOwner.createBuffer(ICompilationUnit workingCopy)
|
IBuffer |
BufferFactoryWrapper.createBuffer(ICompilationUnit workingCopy)
Deprecated. |
NameLookup |
JavaProject.newNameLookup(ICompilationUnit[] workingCopies)
|
SearchableEnvironment |
JavaProject.newSearchableNameEnvironment(ICompilationUnit[] workingCopies)
|
ITypeHierarchy |
SourceType.newSupertypeHierarchy(ICompilationUnit[] workingCopies,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
ITypeHierarchy |
BinaryType.newSupertypeHierarchy(ICompilationUnit[] workingCopies,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
ITypeHierarchy |
SourceType.newTypeHierarchy(ICompilationUnit[] workingCopies,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
ITypeHierarchy |
BinaryType.newTypeHierarchy(ICompilationUnit[] workingCopies,
org.eclipse.core.runtime.IProgressMonitor monitor)
|
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. |
|
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)
|
Uses of ICompilationUnit in org.eclipse.jdt.internal.core.hierarchy |
---|
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(InternalSearchPattern pattern,
SearchDocument[] indexMatches,
ICompilationUnit[] copies,
SearchParticipant participant)
|
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. |
Uses of ICompilationUnit in org.jmlspecs.eclipse.jdt.ui |
---|
Methods in org.jmlspecs.eclipse.jdt.ui with parameters of type ICompilationUnit | |
---|---|
void |
NewJmlSpecCreationPage.insertCompUnit(ICompilationUnit cu,
java.lang.StringBuffer s,
java.lang.String eol,
IPackageFragment pack)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |