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

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

Introduction

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

The text is from its open source code.

Implementation

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

Field

intK_SOURCE
Kind constant for a source path root.
intK_BINARY
Kind constant for a binary path root.
StringDEFAULT_PACKAGEROOT_PATH
Empty root path
intORIGINATING_PROJECT_CLASSPATH
Update model flag constant (bit mask value 2) indicating that the operation is to update the classpath of the originating project.

Method

voidattachSource(IPath sourcePath, IPath rootPath, IProgressMonitor monitor)
Attaches the source archive identified by the given absolute path to this binary package fragment root.
voidclose()
Closes this element and its buffer (if any).
IPackageFragmentcreatePackageFragment(String name, boolean force, IProgressMonitor monitor)
Creates and returns a package fragment in this root with the given dot-separated package name.
voiddelete(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.
booleanexists()
Returns whether this Java element exists in the model.
IJavaElementgetAncestor(int ancestorType)
Returns this Java element or the first ancestor of this element that has the given type.
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.
intgetElementType()
Returns this element's kind encoded as an integer.
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).
intgetKind()
Returns this package fragment root's kind encoded as an integer.
Object[]getNonJavaResources()
Returns an array of non-Java resources contained in this package fragment root.
IPackageFragmentgetPackageFragment(String packageName)
Returns the package fragment with the given package name.
IJavaElementgetParent()
Returns the element directly containing this element, or null if this element has no parent.
IPathgetPath()
Returns the path to the innermost resource enclosing this element.
IJavaElementgetPrimaryElement()
Returns the primary element (whose compilation unit is the primary compilation unit) this working copy element was created from, or this element if it is a descendant of a primary compilation unit or if it is not a descendant of a working copy (e.g.
IClasspathEntrygetRawClasspathEntry()
Returns the first raw classpath entry that corresponds to this package fragment root.
IClasspathEntrygetResolvedClasspathEntry()
Returns the first resolved classpath entry that corresponds to this package fragment root.
IResourcegetResource()
Returns the innermost resource enclosing this element.
IPathgetSourceAttachmentPath()
Returns the absolute path to the source archive attached to this package fragment root's binary archive.
IPathgetSourceAttachmentRootPath()
Returns the path within this package fragment root's source archive.
IResourcegetUnderlyingResource()
Returns the smallest underlying resource that contains this element, or null if this element is not contained in a resource.
booleanisArchive()
Returns whether this package fragment root's underlying resource is a binary archive (a JAR or zip file).
booleanisExternal()
Returns whether this package fragment root is external to the workbench (that is, a local file), and has no underlying resource.
booleanisOpen()
Returns whether this openable is open.
booleanisReadOnly()
Returns whether this Java element is read-only.
voidopen(IProgressMonitor progress)
Opens this element and all parent elements that are not already open.