Java org.eclipse.jdt.core IJavaProject fields, constructors, methods, implement or subclass

Example usage for Java org.eclipse.jdt.core IJavaProject fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.eclipse.jdt.core IJavaProject.

The text is from its open source code.

Implementation

org.eclipse.jdt.core.IJavaProject has the following implementations.
Click this link to see all its implementation.

Field

StringCLASSPATH_FILE_NAME
Path of the file containing the project's classpath relative to the project's root.

Method

IClasspathEntrydecodeClasspathEntry(String encodedEntry)
Decodes the classpath entry that has been encoded in the given string in the context of this project.
StringencodeClasspathEntry(IClasspathEntry classpathEntry)
Encodes the given classpath entry into a string in the context of this project.
booleanexists()
Returns whether this Java element exists in the model.
IJavaElementfindElement(IPath path)
Returns the IJavaElement corresponding to the given classpath-relative path, or null if no such IJavaElement is found.
IJavaElementfindElement(IPath path, WorkingCopyOwner owner)
Returns the IJavaElement corresponding to the given classpath-relative path, or null if no such IJavaElement is found.
IJavaElementfindElement(String bindingKey, WorkingCopyOwner owner)
Finds the Java element corresponding to the given binding key if any, else returns null.
IPackageFragmentfindPackageFragment(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.
IPackageFragmentRootfindPackageFragmentRoot(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.
IPackageFragmentRoot[]findPackageFragmentRoots(IClasspathEntry entry)
Returns the existing package fragment roots identified by the given entry.
ITypefindType(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.
ITypefindType(String fullyQualifiedName, IProgressMonitor progressMonitor)
Same functionality as #findType(String) but also looks for secondary types if the given name does not match a compilation unit name.
ITypefindType(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.
ITypefindType(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.
IPackageFragmentRoot[]getAllPackageFragmentRoots()
Returns all of the existing package fragment roots that exist on the classpath, in the order they are defined by the classpath.
IResourcegetCorrespondingResource()
Returns the resource that corresponds directly to this element, or null if there is no resource that corresponds to this element.
StringgetElementName()
Returns the name of this element.
StringgetHandleIdentifier()
Returns a string representation of this element handle.
IJavaModelgetJavaModel()
Returns the Java model.
IJavaProjectgetJavaProject()
Returns the Java project this element is contained in, or null if this element is not contained in any Java project (for instance, the IJavaModel is not contained in any Java project).
IModuleDescriptiongetModuleDescription()
Returns the IModuleDescription this project represents or null if the Java project doesn't represent any named module.
Object[]getNonJavaResources()
Returns an array of non-Java resources directly contained in this project.
IOpenablegetOpenable()
Returns the first openable parent.
StringgetOption(String optionName, boolean inheritJavaCoreOptions)
Helper method for returning one option value only.
MapgetOptions(boolean inheritJavaCoreOptions)
Returns the table of the current custom options for this project.
IPathgetOutputLocation()
Returns the default output location for this project as a workspace- relative absolute path.
IPackageFragmentRootgetPackageFragmentRoot(String externalLibraryPath)
Returns a package fragment root for an external library (a ZIP archive - e.g.
IPackageFragmentRootgetPackageFragmentRoot(IResource resource)
Returns a package fragment root for the given resource, which must either be a folder representing the top of a package hierarchy, or a ZIP archive (e.g.
IPackageFragmentRoot[]getPackageFragmentRoots()
Returns all of the package fragment roots contained in this project, identified on this project's resolved classpath.
IPackageFragmentRoot[]getPackageFragmentRoots(IClasspathEntry entry)
Returns the existing package fragment roots identified by the given entry.
IPackageFragment[]getPackageFragments()
Returns all package fragments in all package fragment roots contained in this project.
IPathgetPath()
Returns the path to the innermost resource enclosing this element.
IProjectgetProject()
Returns the IProject on which this IJavaProject was created.
IClasspathEntry[]getRawClasspath()
Returns the raw classpath for the project, as a list of classpath entries.
String[]getRequiredProjectNames()
Returns the names of the projects that are directly required by this project.
IClasspathEntry[]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.
IResourcegetResource()
Returns the innermost resource enclosing this element.
ISchedulingRulegetSchedulingRule()
Returns the scheduling rule associated with this Java element.
IResourcegetUnderlyingResource()
Returns the smallest underlying resource that contains this element, or null if this element is not contained in a resource.
booleanhasBuildState()
Returns whether this project has been built at least once and thus whether it has a build state.
booleanhasClasspathCycle(IClasspathEntry[] entries)
Returns whether setting this project's classpath to the given classpath entries would result in a cycle.
booleanisOnClasspath(IJavaElement element)
Returns whether the given element is on the classpath of this project, that is, referenced from a classpath entry and not explicitly excluded using an exclusion pattern.
booleanisOnClasspath(IResource resource)
Returns whether the given resource is on the classpath of this project, that is, referenced from a classpath entry and not explicitly excluded using an exclusion pattern.
booleanisReadOnly()
Returns whether this Java element is read-only.
IEvaluationContextnewEvaluationContext()
Creates a new evaluation context.
ITypeHierarchynewTypeHierarchy(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.
ITypeHierarchynewTypeHierarchy(IType type, IRegion region, IProgressMonitor monitor)
Creates and returns a type hierarchy for the given type considering subtypes in the specified region.
IPathreadOutputLocation()
Returns the default output location for the project as defined by its .classpath file from disk, or null if unable to read the file.
IClasspathEntry[]readRawClasspath()
Returns the raw classpath for the project as defined by its .classpath file from disk, or null if unable to read the file.
voidsetOption(String optionName, String optionValue)
Helper method for setting one option value only.
voidsetOptions(Map newOptions)
Sets the project custom options.
voidsetOutputLocation(IPath path, IProgressMonitor monitor)
Sets the default output location of this project to the location described by the given workspace-relative absolute path.
voidsetRawClasspath(IClasspathEntry[] entries, IProgressMonitor monitor)
Sets the classpath of this project using a list of classpath entries.
voidsetRawClasspath(IClasspathEntry[] entries, boolean canModifyResources, IProgressMonitor monitor)
Sets the classpath of this project using a list of classpath entries.
voidsetRawClasspath(IClasspathEntry[] entries, IPath outputLocation, IProgressMonitor monitor)
Sets the both the classpath of this project and its default output location at once.
voidsetRawClasspath(IClasspathEntry[] entries, IPath outputLocation, boolean canModifyResources, IProgressMonitor monitor)
Sets both the classpath of this project and its default output location at once.
voidsetRawClasspath(IClasspathEntry[] entries, IClasspathEntry[] referencedEntries, IPath outputLocation, IProgressMonitor monitor)
Works similar to #setRawClasspath(IClasspathEntry[],IPath,IProgressMonitor) and additionally allows persisting the given array of referenced entries for this project.