UndoEdit |
IBuffer.ITextEditCapability.applyTextEdit(TextEdit edit,
IProgressMonitor monitor) |
Applies a text edit to this underlying buffer.
|
UndoEdit |
ICompilationUnit.applyTextEdit(TextEdit edit,
IProgressMonitor monitor) |
Applies a text edit to the compilation unit's buffer.
|
void |
IPackageFragmentRoot.attachSource(IPath sourcePath,
IPath rootPath,
IProgressMonitor monitor) |
Attaches the source archive identified by the given absolute path to this
binary package fragment root.
|
ICompilationUnit |
IClassFile.becomeWorkingCopy(IProblemRequestor problemRequestor,
WorkingCopyOwner owner,
IProgressMonitor monitor) |
Deprecated.
|
void |
ICompilationUnit.becomeWorkingCopy(IProgressMonitor monitor) |
Changes this compilation unit handle into a working copy.
|
void |
ICompilationUnit.becomeWorkingCopy(IProblemRequestor problemRequestor,
IProgressMonitor monitor) |
Deprecated.
|
void |
IOpenable.close() |
Closes this element and its buffer (if any).
|
void |
ICodeAssist.codeComplete(int offset,
CompletionRequestor requestor) |
Performs code completion at the given offset position in this compilation unit,
reporting results to the given completion requestor.
|
void |
ICodeAssist.codeComplete(int offset,
CompletionRequestor requestor,
IProgressMonitor monitor) |
Performs code completion at the given offset position in this compilation unit,
reporting results to the given completion requestor.
|
void |
ICodeAssist.codeComplete(int offset,
CompletionRequestor requestor,
WorkingCopyOwner owner) |
Performs code completion at the given offset position in this compilation unit,
reporting results to the given completion requestor.
|
void |
ICodeAssist.codeComplete(int offset,
CompletionRequestor requestor,
WorkingCopyOwner owner,
IProgressMonitor monitor) |
Performs code completion at the given offset position in this compilation unit,
reporting results to the given completion requestor.
|
void |
ICodeAssist.codeComplete(int offset,
ICodeCompletionRequestor requestor) |
Deprecated.
|
void |
ICodeAssist.codeComplete(int offset,
ICompletionRequestor requestor) |
Deprecated.
|
void |
ICodeAssist.codeComplete(int offset,
ICompletionRequestor requestor,
WorkingCopyOwner owner) |
Deprecated.
|
void |
IType.codeComplete(char[] snippet,
int insertion,
int position,
char[][] localVariableTypeNames,
char[][] localVariableNames,
int[] localVariableModifiers,
boolean isStatic,
CompletionRequestor requestor) |
Do code completion inside a code snippet in the context of the current type.
|
void |
IType.codeComplete(char[] snippet,
int insertion,
int position,
char[][] localVariableTypeNames,
char[][] localVariableNames,
int[] localVariableModifiers,
boolean isStatic,
CompletionRequestor requestor,
IProgressMonitor monitor) |
Do code completion inside a code snippet in the context of the current type.
|
void |
IType.codeComplete(char[] snippet,
int insertion,
int position,
char[][] localVariableTypeNames,
char[][] localVariableNames,
int[] localVariableModifiers,
boolean isStatic,
CompletionRequestor requestor,
WorkingCopyOwner owner) |
Do code completion inside a code snippet in the context of the current type.
|
void |
IType.codeComplete(char[] snippet,
int insertion,
int position,
char[][] localVariableTypeNames,
char[][] localVariableNames,
int[] localVariableModifiers,
boolean isStatic,
CompletionRequestor requestor,
WorkingCopyOwner owner,
IProgressMonitor monitor) |
Do code completion inside a code snippet in the context of the current type.
|
void |
IType.codeComplete(char[] snippet,
int insertion,
int position,
char[][] localVariableTypeNames,
char[][] localVariableNames,
int[] localVariableModifiers,
boolean isStatic,
ICompletionRequestor requestor) |
Deprecated.
|
void |
IType.codeComplete(char[] snippet,
int insertion,
int position,
char[][] localVariableTypeNames,
char[][] localVariableNames,
int[] localVariableModifiers,
boolean isStatic,
ICompletionRequestor requestor,
WorkingCopyOwner owner) |
Deprecated.
|
IJavaElement[] |
ICodeAssist.codeSelect(int offset,
int length) |
Returns the Java elements corresponding to the given selected text in this compilation unit.
|
IJavaElement[] |
ICodeAssist.codeSelect(int offset,
int length,
WorkingCopyOwner owner) |
Returns the Java elements corresponding to the given selected text in this compilation unit.
|
void |
IWorkingCopy.commit(boolean force,
IProgressMonitor monitor) |
Deprecated.
|
void |
ICompilationUnit.commitWorkingCopy(boolean force,
IProgressMonitor monitor) |
Commits the contents of this working copy to its underlying resource.
|
static byte[] |
JavaCore.compileWithAttributes(IModuleDescription module,
Map<String,String> classFileAttributes) |
Compile the given module description in the context of its enclosing Java project
and add class file attributes using the given map of attribute values.
|
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.
|
boolean |
IPackageFragment.containsJavaResources() |
Returns whether this fragment contains at least one Java resource.
|
void |
IJavaModel.copy(IJavaElement[] elements,
IJavaElement[] containers,
IJavaElement[] siblings,
String[] renamings,
boolean replace,
IProgressMonitor monitor) |
Copies the given elements to the specified container(s).
|
void |
IPackageFragmentRoot.copy(IPath destination,
int updateResourceFlags,
int updateModelFlags,
IClasspathEntry sibling,
IProgressMonitor monitor) |
Copies the resource of this package fragment root to the destination path
as specified by IResource.copy(IPath, int, IProgressMonitor)
but excluding nested source folders.
|
void |
ISourceManipulation.copy(IJavaElement container,
IJavaElement sibling,
String rename,
boolean replace,
IProgressMonitor monitor) |
Copies this element to the given container.
|
ICompilationUnit |
IPackageFragment.createCompilationUnit(String name,
String contents,
boolean force,
IProgressMonitor monitor) |
Creates and returns a compilation unit in this package fragment
with the specified name and contents.
|
IField |
IType.createField(String contents,
IJavaElement sibling,
boolean force,
IProgressMonitor monitor) |
Creates and returns a field in this type with the
given contents.
|
IImportDeclaration |
ICompilationUnit.createImport(String name,
IJavaElement sibling,
int flags,
IProgressMonitor monitor) |
Creates and returns an import declaration in this compilation unit
with the given name.
|
IImportDeclaration |
ICompilationUnit.createImport(String name,
IJavaElement sibling,
IProgressMonitor monitor) |
Creates and returns an non-static import declaration in this compilation unit
with the given name.
|
IInitializer |
IType.createInitializer(String contents,
IJavaElement sibling,
IProgressMonitor monitor) |
Creates and returns a static initializer in this type with the
given contents.
|
IMethod |
IType.createMethod(String contents,
IJavaElement sibling,
boolean force,
IProgressMonitor monitor) |
Creates and returns a method or constructor in this type with the
given contents.
|
IPackageDeclaration |
ICompilationUnit.createPackageDeclaration(String name,
IProgressMonitor monitor) |
Creates and returns a package declaration in this compilation unit
with the given package name.
|
IPackageFragment |
IPackageFragmentRoot.createPackageFragment(String name,
boolean force,
IProgressMonitor monitor) |
Creates and returns a package fragment in this root with the
given dot-separated package name.
|
IType |
ICompilationUnit.createType(String contents,
IJavaElement sibling,
boolean force,
IProgressMonitor monitor) |
Creates and returns a type in this compilation unit with the
given contents.
|
IType |
IType.createType(String contents,
IJavaElement sibling,
boolean force,
IProgressMonitor monitor) |
Creates and returns a type in this type with the
given contents.
|
void |
IJavaModel.delete(IJavaElement[] elements,
boolean force,
IProgressMonitor monitor) |
Deletes the given elements, forcing the operation if necessary and specified.
|
void |
IPackageFragmentRoot.delete(int updateResourceFlags,
int updateModelFlags,
IProgressMonitor monitor) |
Deletes the resource of this package fragment root as specified by
IResource.delete(int, IProgressMonitor) but excluding nested
source folders.
|
void |
ISourceManipulation.delete(boolean force,
IProgressMonitor monitor) |
Deletes this element, forcing if specified and necessary.
|
Set<String> |
IJavaProject.determineModulesOfProjectsWithNonEmptyClasspath() |
When compiling test code in a modular project that has non-source classpath entries which don't have the
IClasspathAttribute.MODULE set, the module is assumed to read the unnamed module (which is useful for
test-only dependencies that should not be mentioned in the module-info.java).
|
void |
ICompilationUnit.discardWorkingCopy() |
Changes this compilation unit in working copy mode back to its original mode.
|
IJavaElement |
IJavaProject.findElement(String bindingKey,
WorkingCopyOwner owner) |
Finds the Java element corresponding to the given binding key if any,
else returns null .
|
IJavaElement |
IJavaProject.findElement(IPath path) |
Returns the IJavaElement corresponding to the given
classpath-relative path, or null if no such
IJavaElement is found.
|
IJavaElement |
IJavaProject.findElement(IPath path,
WorkingCopyOwner owner) |
Returns the IJavaElement corresponding to the given
classpath-relative path, or null if no such
IJavaElement is found.
|
IModuleDescription |
IJavaProject.findModule(String moduleName,
WorkingCopyOwner owner) |
Finds the first module with the given name found following this project's module path.
|
IPackageFragment |
IJavaProject.findPackageFragment(IPath path) |
Returns the first existing package fragment on this project's classpath
whose path matches the given (absolute) path, or null if none
exist.
|
IPackageFragmentRoot |
IJavaProject.findPackageFragmentRoot(IPath path) |
Returns the existing package fragment root on this project's classpath
whose path matches the given (absolute) path, or null if
one does not exist.
|
String |
IOpenable.findRecommendedLineSeparator() |
Finds and returns the recommended line separator for this element.
|
IType |
IJavaProject.findType(String fullyQualifiedName) |
Returns the first type (excluding secondary types) found following this project's
classpath with the given fully qualified name or null if none is found.
|
IType |
IJavaProject.findType(String packageName,
String typeQualifiedName) |
Returns the first type (excluding secondary types) found following this
project's classpath with the given package name and type qualified name
or null if none is found.
|
IType |
IJavaProject.findType(String packageName,
String typeQualifiedName,
IProgressMonitor progressMonitor) |
|
IType |
IJavaProject.findType(String packageName,
String typeQualifiedName,
WorkingCopyOwner owner) |
Returns the first type (excluding secondary types) found following this
project's classpath with the given package name and type qualified name
or null if none is found.
|
IType |
IJavaProject.findType(String packageName,
String typeQualifiedName,
WorkingCopyOwner owner,
IProgressMonitor progressMonitor) |
|
IType |
IJavaProject.findType(String fullyQualifiedName,
IProgressMonitor progressMonitor) |
|
IType |
IJavaProject.findType(String fullyQualifiedName,
WorkingCopyOwner owner) |
Returns the first type (excluding secondary types) found following this project's
classpath with the given fully qualified name or null if none is found.
|
IType |
IJavaProject.findType(String fullyQualifiedName,
WorkingCopyOwner owner,
IProgressMonitor progressMonitor) |
|
IClassFile[] |
IPackageFragment.getAllClassFiles() |
Returns all of the class files in this package fragment.
|
IPackageFragmentRoot[] |
IJavaProject.getAllPackageFragmentRoots() |
Returns all of the existing package fragment roots that exist
on the classpath, in the order they are defined by the classpath.
|
IType[] |
ICompilationUnit.getAllTypes() |
Returns all types declared in this compilation unit in the order
in which they appear in the source.
|
IAnnotation[] |
IAnnotatable.getAnnotations() |
Returns the annotations for this element.
|
String |
IJavaElement.getAttachedJavadoc(IProgressMonitor monitor) |
Returns the Javadoc as HTML source if this element has attached Javadoc,
null otherwise.
|
static IModuleDescription |
JavaCore.getAutomaticModuleDescription(IJavaElement element) |
Returns the IModuleDescription that the given java element contains
when regarded as an automatic module.
|
String[] |
ITypeParameter.getBounds() |
Returns the names of the class and interface bounds of this type parameter.
|
String[] |
ITypeParameter.getBoundsSignatures() |
Returns the signatures for this type parameter's bounds.
|
IBuffer |
IOpenable.getBuffer() |
Returns the buffer opened for this element, or null
if this element does not have a buffer.
|
byte[] |
IClassFile.getBytes() |
Returns the bytes contained in this class file.
|
String[] |
IMember.getCategories() |
Returns the categories defined by this member's Javadoc.
|
IJavaElement[] |
IParent.getChildren() |
Returns the immediate children of this element.
|
IJavaElement[] |
IType.getChildrenForCategory(String category) |
Returns the children of this type that have the given category as a @category tag.
|
IClassFile[] |
IPackageFragment.getClassFiles() |
Deprecated.
|
static IClasspathContainer |
JavaCore.getClasspathContainer(IPath containerPath,
IJavaProject project) |
Answers the project specific value for a given classpath container.
|
IClasspathEntry |
IJavaProject.getClasspathEntryFor(IPath path) |
Returns the classpath entry that refers to the given path or null if there is no reference to the
path.
|
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.
|
Object |
IField.getConstant() |
Returns the constant value associated with this field
or null if this field has none.
|
IResource |
IJavaElement.getCorrespondingResource() |
Returns the resource that corresponds directly to this element,
or null if there is no resource that corresponds to
this element.
|
IMemberValuePair |
IMethod.getDefaultValue() |
Returns a member value pair representing the default
value of this method if any, or null if this method's parent is
not an annotation type, or else if this method does not have a default value.
|
IJavaElement |
ITypeRoot.getElementAt(int position) |
Returns the smallest element within this Java type root that
includes the given source position (that is, a method, field, etc.), or
null if there is no element other than the Java type root
itself at the given position, or if the given position is not
within the source range of the source of this Java type root.
|
String[] |
IMethod.getExceptionTypes() |
Returns the type signatures of the exceptions this method throws,
in the order declared in the source.
|
String[] |
IModuleDescription.getExportedPackageNames(IModuleDescription targetModule) |
Get names of exported packages.
|
IField[] |
IType.getFields() |
Returns the fields declared by this type in the order in which they appear
in the source or class file.
|
int |
IImportDeclaration.getFlags() |
Returns the modifier flags for this import.
|
int |
IMember.getFlags() |
Returns the modifier flags for this member.
|
String |
IType.getFullyQualifiedParameterizedName() |
Returns this type's fully qualified name using a '.' enclosing type separator
followed by its type parameters between angle brackets if it is a generic type.
|
IImportDeclaration[] |
ICompilationUnit.getImports() |
Returns the import declarations in this compilation unit
in the order in which they appear in the source.
|
IInitializer[] |
IType.getInitializers() |
Returns the initializers declared by this type.
|
ISourceRange |
IMember.getJavadocRange() |
Returns the Javadoc range if this element is from source or if this element
is a binary element with an attached source, null otherwise.
|
IJavaProject[] |
IJavaModel.getJavaProjects() |
Returns the Java projects in this Java model, or an empty array if there
are none.
|
int |
IPackageFragment.getKind() |
Returns this package fragment's root kind encoded as an integer.
|
int |
IPackageFragmentRoot.getKind() |
Returns this package fragment root's kind encoded as an integer.
|
IMemberValuePair[] |
IAnnotation.getMemberValuePairs() |
Returns the member-value pairs of this annotation.
|
IMethod[] |
IType.getMethods() |
Returns the methods and constructors declared by this type.
|
IModuleDescription |
IModularClassFile.getModule() |
Returns the module description contained in this type root.
|
default IModuleDescription |
ITypeRoot.getModule() |
Returns the module description contained in this type root or null if there is no module
in this type root.
|
IModuleDescription |
IJavaProject.getModuleDescription() |
Returns the IModuleDescription this project represents or
null if the Java project doesn't represent any named module.
|
ISourceRange |
ISourceReference.getNameRange() |
Returns the name range associated with this element.
|
Object[] |
IJavaModel.getNonJavaResources() |
Returns an array of non-Java resources (that is, non-Java projects) in
the workspace.
|
Object[] |
IJavaProject.getNonJavaResources() |
Returns an array of non-Java resources directly contained in this project.
|
Object[] |
IPackageFragment.getNonJavaResources() |
Returns an array of non-Java resources contained in this package fragment.
|
Object[] |
IPackageFragmentRoot.getNonJavaResources() |
Returns an array of non-Java resources contained in this package fragment root.
|
String[] |
IModuleDescription.getOpenedPackageNames(IModuleDescription targetModule) |
Get names of opened packages.
|
IOrdinaryClassFile[] |
IPackageFragment.getOrdinaryClassFiles() |
Returns all of the ordinary class files in this package fragment,
i.e., not including the modular class file "module-info.class".
|
IPath |
IJavaProject.getOutputLocation() |
Returns the default output location for this project as a workspace-
relative absolute path.
|
IModuleDescription |
IJavaProject.getOwnModuleDescription() |
Returns the IModuleDescription owned by this project or
null if the Java project doesn't own a valid Java module descriptor.
|
IPackageDeclaration[] |
ICompilationUnit.getPackageDeclarations() |
Returns the package declarations in this compilation unit
in the order in which they appear in the source.
|
IPackageFragmentRoot[] |
IJavaProject.getPackageFragmentRoots() |
Returns all of the package fragment roots contained in this
project, identified on this project's resolved classpath.
|
IPackageFragment[] |
IJavaProject.getPackageFragments() |
Returns all package fragments in all package fragment roots contained
in this project.
|
String[] |
IMethod.getParameterNames() |
Returns the names of parameters in this method.
|
ILocalVariable[] |
IMethod.getParameters() |
Returns the parameters of this method.
|
String[] |
IModuleDescription.getProvidedServiceNames() |
Get provided service names for this module.
|
IClasspathEntry[] |
IJavaProject.getRawClasspath() |
Returns the raw classpath for the project, as a list of classpath
entries.
|
IClasspathEntry |
IPackageFragmentRoot.getRawClasspathEntry() |
Returns the first raw classpath entry that corresponds to this package
fragment root.
|
String[] |
IMethod.getRawParameterNames() |
Returns the names of parameters in this method.
|
default IField[] |
IType.getRecordComponents() |
Returns the record components declared by this record class, or an empty
array if this is not a record.
|
IClasspathEntry[] |
IJavaProject.getReferencedClasspathEntries() |
Returns the list of referenced classpath entries stored in the .classpath file of this
java project.
|
String[] |
IModuleDescription.getRequiredModuleNames() |
Answer the names of all modules directly required from this module.
|
String[] |
IJavaProject.getRequiredProjectNames() |
Returns the names of the projects that are directly required by this
project.
|
IClasspathEntry[] |
IJavaProject.getResolvedClasspath(boolean ignoreUnresolvedEntry) |
This is a helper method returning the resolved classpath for the project
as a list of simple (non-variable, non-container) classpath entries.
|
IClasspathEntry |
IPackageFragmentRoot.getResolvedClasspathEntry() |
Returns the first resolved classpath entry that corresponds to this package fragment root.
|
String |
IMethod.getReturnType() |
Returns the type signature of the return value of this method.
|
IJavaElement |
IWorkingCopy.getSharedWorkingCopy(IProgressMonitor monitor,
IBufferFactory factory,
IProblemRequestor problemRequestor) |
Deprecated.
|
String |
IMethod.getSignature() |
Returns the signature of this method.
|
String |
ISourceReference.getSource() |
Returns the source code associated with this element.
|
IPath |
IPackageFragmentRoot.getSourceAttachmentPath() |
Returns the absolute path to the source archive attached to
this package fragment root's binary archive.
|
IPath |
IPackageFragmentRoot.getSourceAttachmentRootPath() |
Returns the path within this package fragment root's source archive.
|
ISourceRange |
ISourceReference.getSourceRange() |
Returns the source range associated with this element.
|
String |
IType.getSuperclassName() |
Returns the name of this type's superclass, or null
for source types that do not specify a superclass.
|
String |
IType.getSuperclassTypeSignature() |
Returns the type signature of this type's superclass, or
null if none.
|
String[] |
IType.getSuperInterfaceNames() |
Returns the names of interfaces that this type implements or extends,
in the order in which they are listed in the source.
|
String[] |
IType.getSuperInterfaceTypeSignatures() |
Returns the type signatures of the interfaces that this type
implements or extends, in the order in which they are listed in the
source.
|
ITypeParameter[] |
IMethod.getTypeParameters() |
Returns the formal type parameters for this method.
|
ITypeParameter[] |
IType.getTypeParameters() |
Returns the formal type parameters for this type.
|
String[] |
IMethod.getTypeParameterSignatures() |
Deprecated.
|
String[] |
IType.getTypeParameterSignatures() |
Returns the formal type parameter signatures for this type.
|
IType[] |
ICompilationUnit.getTypes() |
Returns the top-level types declared in this compilation unit
in the order in which they appear in the source.
|
IType[] |
IType.getTypes() |
Returns the immediate member types declared by this type.
|
String |
IField.getTypeSignature() |
Returns the type signature of this field.
|
IResource |
IJavaElement.getUnderlyingResource() |
Returns the smallest underlying resource that contains
this element, or null if this element is not contained
in a resource.
|
String[] |
IModuleDescription.getUsedServiceNames() |
Get used service names for this module.
|
IJavaElement |
IClassFile.getWorkingCopy(IProgressMonitor monitor,
IBufferFactory factory) |
Deprecated.
|
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.
|
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.
|
IJavaElement |
IWorkingCopy.getWorkingCopy() |
Deprecated.
|
IJavaElement |
IWorkingCopy.getWorkingCopy(IProgressMonitor monitor,
IBufferFactory factory,
IProblemRequestor problemRequestor) |
Deprecated.
|
boolean |
IParent.hasChildren() |
Returns whether this element has one or more immediate children.
|
boolean |
IPackageFragment.hasSubpackages() |
Returns whether this package fragment's name is
a prefix of other package fragments in this package fragment's
root.
|
boolean |
IOpenable.hasUnsavedChanges() |
Returns true if this element is open and:
its buffer has unsaved changes, or
one of its descendants has unsaved changes, or
a working copy has been created on one of this
element's children and has not yet destroyed
|
boolean |
IType.isAnnotation() |
Returns whether this type represents an annotation type.
|
boolean |
IType.isAnonymous() |
Returns whether this type represents an anonymous type.
|
boolean |
IClassFile.isClass() |
Returns whether this type represents a class.
|
boolean |
IType.isClass() |
Returns whether this type represents a class.
|
boolean |
IOpenable.isConsistent() |
Returns whether the element is consistent with its underlying resource or buffer.
|
boolean |
IMethod.isConstructor() |
Returns whether this method is a constructor.
|
boolean |
IType.isEnum() |
Returns whether this type represents an enumeration class.
|
boolean |
IField.isEnumConstant() |
Returns whether this field represents an enum constant.
|
boolean |
IClassFile.isInterface() |
Returns whether this type represents an interface.
|
boolean |
IType.isInterface() |
Returns whether this type represents an interface.
|
boolean |
IType.isLocal() |
Returns whether this type represents a local type.
|
boolean |
IMethod.isMainMethod() |
Returns whether this method is a main method.
|
boolean |
IType.isMember() |
Returns whether this type represents a member type.
|
boolean |
IType.isRecord() |
Returns whether this type represents a record class.
|
boolean |
IField.isRecordComponent() |
Returns whether this field represents a record component.
|
boolean |
IJavaElement.isStructureKnown() |
Returns whether the structure of this element is known.
|
ITypeHierarchy |
IType.loadTypeHierachy(InputStream input,
IProgressMonitor monitor) |
Loads a previously saved ITypeHierarchy from an input stream.
|
void |
IOpenable.makeConsistent(IProgressMonitor progress) |
Makes this element consistent with its underlying resource or buffer
by updating the element's structure and properties as necessary.
|
void |
IJavaModel.move(IJavaElement[] elements,
IJavaElement[] containers,
IJavaElement[] siblings,
String[] renamings,
boolean replace,
IProgressMonitor monitor) |
Moves the given elements to the specified container(s).
|
void |
IPackageFragmentRoot.move(IPath destination,
int updateResourceFlags,
int updateModelFlags,
IClasspathEntry sibling,
IProgressMonitor monitor) |
Moves the resource of this package fragment root to the destination path
as specified by IResource.move(IPath,int,IProgressMonitor)
but excluding nested source folders.
|
void |
ISourceManipulation.move(IJavaElement container,
IJavaElement sibling,
String rename,
boolean replace,
IProgressMonitor monitor) |
Moves this element to the given container.
|
ITypeHierarchy |
IType.newSupertypeHierarchy(IProgressMonitor monitor) |
Creates and returns a type hierarchy for this type containing
this type and all of its supertypes.
|
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.newSupertypeHierarchy(IWorkingCopy[] workingCopies,
IProgressMonitor monitor) |
Deprecated.
|
ITypeHierarchy |
IType.newSupertypeHierarchy(WorkingCopyOwner owner,
IProgressMonitor monitor) |
Creates and returns a type hierarchy for this type containing
this type and all of its supertypes, considering types in the
working copies with the given owner.
|
ITypeHierarchy |
IJavaProject.newTypeHierarchy(IRegion region,
IProgressMonitor monitor) |
Creates and returns a type hierarchy for all types in the given
region, considering subtypes within that region.
|
ITypeHierarchy |
IJavaProject.newTypeHierarchy(IRegion region,
WorkingCopyOwner owner,
IProgressMonitor monitor) |
Creates and returns a type hierarchy for all types in the given
region, considering subtypes within that region and considering types in the
working copies with the given owner.
|
ITypeHierarchy |
IJavaProject.newTypeHierarchy(IType type,
IRegion region,
IProgressMonitor monitor) |
Creates and returns a type hierarchy for the given type considering
subtypes in the specified region.
|
ITypeHierarchy |
IJavaProject.newTypeHierarchy(IType type,
IRegion region,
WorkingCopyOwner owner,
IProgressMonitor monitor) |
Creates and returns a type hierarchy for the given type considering
subtypes in the specified region and considering types in the
working copies with the given owner.
|
ITypeHierarchy |
IType.newTypeHierarchy(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.
|
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.
|
ITypeHierarchy |
IType.newTypeHierarchy(IJavaProject project,
IProgressMonitor monitor) |
Creates and returns a type hierarchy for this type containing
this type, all of its supertypes, and all its subtypes
in the context of the given project.
|
ITypeHierarchy |
IType.newTypeHierarchy(IJavaProject project,
WorkingCopyOwner owner,
IProgressMonitor monitor) |
Creates and returns a type hierarchy for this type containing
this type, all of its supertypes, and all its subtypes
in the context of the given project, considering types in the
working copies with the given owner.
|
ITypeHierarchy |
IType.newTypeHierarchy(IWorkingCopy[] workingCopies,
IProgressMonitor monitor) |
Deprecated.
|
ITypeHierarchy |
IType.newTypeHierarchy(WorkingCopyOwner owner,
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 working copies with the given owner.
|
static ITypeHierarchy |
JavaCore.newTypeHierarchy(IRegion region,
WorkingCopyOwner owner,
IProgressMonitor monitor) |
Creates and returns a type hierarchy for all types in the given
region, considering subtypes within that region and considering types in the
working copies with the given owner.
|
ICompilationUnit |
WorkingCopyOwner.newWorkingCopy(String name,
IClasspathEntry[] classpath,
IProgressMonitor monitor) |
Returns a new working copy with the given name using this working copy owner to
create its buffer.
|
ICompilationUnit |
WorkingCopyOwner.newWorkingCopy(String name,
IClasspathEntry[] classpath,
IProblemRequestor problemRequestor,
IProgressMonitor monitor) |
Deprecated.
|
void |
IOpenable.open(IProgressMonitor progress) |
Opens this element and all parent elements that are not already open.
|
CompilationUnit |
ICompilationUnit.reconcile(int astLevel,
boolean forceProblemDetection,
boolean enableStatementsRecovery,
WorkingCopyOwner owner,
IProgressMonitor monitor) |
Reconciles the contents of this working copy, sends out a Java delta
notification indicating the nature of the change of the working copy since
the last time it was either reconciled or made consistent
( IOpenable.makeConsistent(IProgressMonitor) ), and returns a
compilation unit AST if requested.
|
CompilationUnit |
ICompilationUnit.reconcile(int astLevel,
boolean forceProblemDetection,
WorkingCopyOwner owner,
IProgressMonitor monitor) |
Reconciles the contents of this working copy, sends out a Java delta
notification indicating the nature of the change of the working copy since
the last time it was either reconciled or made consistent
( IOpenable.makeConsistent(IProgressMonitor) ), and returns a
compilation unit AST if requested.
|
CompilationUnit |
ICompilationUnit.reconcile(int astLevel,
int reconcileFlags,
WorkingCopyOwner owner,
IProgressMonitor monitor) |
Reconciles the contents of this working copy, sends out a Java delta
notification indicating the nature of the change of the working copy since
the last time it was either reconciled or made consistent
( IOpenable.makeConsistent(IProgressMonitor) ), and returns a
compilation unit AST if requested.
|
IMarker[] |
IWorkingCopy.reconcile() |
Deprecated.
|
void |
IWorkingCopy.reconcile(boolean forceProblemDetection,
IProgressMonitor monitor) |
Deprecated.
|
void |
ITypeHierarchy.refresh(IProgressMonitor monitor) |
Re-computes the type hierarchy reporting progress.
|
void |
IJavaModel.refreshExternalArchives(IJavaElement[] elementsScope,
IProgressMonitor monitor) |
Triggers an update of the JavaModel with respect to the referenced external archives.
|
void |
IJavaModel.rename(IJavaElement[] elements,
IJavaElement[] destinations,
String[] names,
boolean replace,
IProgressMonitor monitor) |
Renames the given elements as specified.
|
void |
ISourceManipulation.rename(String name,
boolean replace,
IProgressMonitor monitor) |
Renames this element to the given name.
|
String[][] |
IType.resolveType(String typeName) |
Resolves the given type name within the context of this type (depending on the type hierarchy
and its imports).
|
String[][] |
IType.resolveType(String typeName,
WorkingCopyOwner owner) |
Resolves the given type name within the context of this type (depending on the type hierarchy
and its imports) and using the given owner's working copies, considering types in the
working copies with the given owner.
|
void |
ICompilationUnit.restore() |
Restores the contents of this working copy to the current contents of
this working copy's original element.
|
void |
IWorkingCopy.restore() |
Deprecated.
|
void |
IBuffer.save(IProgressMonitor progress,
boolean force) |
Saves the contents of this buffer to its underlying resource.
|
void |
IOpenable.save(IProgressMonitor progress,
boolean force) |
Saves any changes in this element's buffer to its underlying resource
via a workspace resource operation.
|
static void |
JavaCore.setClasspathContainer(IPath containerPath,
IJavaProject[] affectedProjects,
IClasspathContainer[] respectiveContainers,
IProgressMonitor monitor) |
Bind a container reference path to some actual containers (IClasspathContainer ).
|
static void |
JavaCore.setClasspathVariable(String variableName,
IPath path) |
Deprecated.
|
static void |
JavaCore.setClasspathVariable(String variableName,
IPath path,
IProgressMonitor monitor) |
Sets the value of the given classpath variable.
|
static void |
JavaCore.setClasspathVariables(String[] variableNames,
IPath[] paths,
IProgressMonitor monitor) |
Sets the values of all the given classpath variables at once.
|
void |
IJavaProject.setOutputLocation(IPath path,
IProgressMonitor monitor) |
Sets the default output location of this project to the location
described by the given workspace-relative absolute path.
|
void |
IJavaProject.setRawClasspath(IClasspathEntry[] entries,
boolean canModifyResources,
IProgressMonitor monitor) |
Sets the classpath of this project using a list of classpath entries.
|
void |
IJavaProject.setRawClasspath(IClasspathEntry[] entries,
IPath outputLocation,
boolean canModifyResources,
IProgressMonitor monitor) |
Sets both the classpath of this project and its default output
location at once.
|
void |
IJavaProject.setRawClasspath(IClasspathEntry[] entries,
IPath outputLocation,
IProgressMonitor monitor) |
Sets the both the classpath of this project and its default output
location at once.
|
void |
IJavaProject.setRawClasspath(IClasspathEntry[] entries,
IProgressMonitor monitor) |
Sets the classpath of this project using a list of classpath entries.
|
void |
IJavaProject.setRawClasspath(IClasspathEntry[] entries,
IClasspathEntry[] referencedEntries,
IPath outputLocation,
IProgressMonitor monitor) |
|
void |
ITypeHierarchy.store(OutputStream outputStream,
IProgressMonitor monitor) |
Stores the type hierarchy in an output stream.
|