Klasse ExternalPackageFragmentRoot
java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.aspectj.org.eclipse.jdt.internal.core.JavaElement
org.aspectj.org.eclipse.jdt.internal.core.Openable
org.aspectj.org.eclipse.jdt.internal.core.PackageFragmentRoot
org.aspectj.org.eclipse.jdt.internal.core.ExternalPackageFragmentRoot
- Alle implementierten Schnittstellen:
IBufferChangedListener
,IJavaElement
,IOpenable
,IPackageFragmentRoot
,IParent
,org.eclipse.core.runtime.IAdaptable
A package fragment root that corresponds to an external class folder.
NOTE: An external package fragment root never has an associated resource.
- Siehe auch:
-
Feldübersicht
Modifizierer und TypFeldBeschreibungprotected final org.eclipse.core.runtime.IPath
The path to the external folder (an OS path)Von Klasse geerbte Felder org.aspectj.org.eclipse.jdt.internal.core.PackageFragmentRoot
ATTACHMENT_PROPERTY_DELIMITER, NO_SOURCE_ATTACHMENT, resource
Von Klasse geerbte Felder org.aspectj.org.eclipse.jdt.internal.core.JavaElement
JEM_ANNOTATION, JEM_CLASSFILE, JEM_COMPILATIONUNIT, JEM_COUNT, JEM_DELIMITER_ESCAPE, JEM_ESCAPE, JEM_FIELD, JEM_IMPORTDECLARATION, JEM_INITIALIZER, JEM_JAVAPROJECT, JEM_LAMBDA_EXPRESSION, JEM_LAMBDA_METHOD, JEM_LOCALVARIABLE, JEM_METHOD, JEM_MODULAR_CLASSFILE, JEM_MODULE, JEM_PACKAGEDECLARATION, JEM_PACKAGEFRAGMENT, JEM_PACKAGEFRAGMENTROOT, JEM_STRING, JEM_TYPE, JEM_TYPE_PARAMETER, NO_ELEMENTS, NO_INFO, NO_STRINGS
Von Schnittstelle geerbte Felder org.aspectj.org.eclipse.jdt.core.IJavaElement
ANNOTATION, CLASS_FILE, COMPILATION_UNIT, FIELD, IMPORT_CONTAINER, IMPORT_DECLARATION, INITIALIZER, JAVA_MODEL, JAVA_MODULE, JAVA_PROJECT, LOCAL_VARIABLE, METHOD, PACKAGE_DECLARATION, PACKAGE_FRAGMENT, PACKAGE_FRAGMENT_ROOT, TYPE, TYPE_PARAMETER
Von Schnittstelle geerbte Felder org.aspectj.org.eclipse.jdt.core.IPackageFragmentRoot
DEFAULT_PACKAGEROOT_PATH, DESTINATION_PROJECT_CLASSPATH, K_BINARY, K_SOURCE, NO_RESOURCE_MODIFICATION, ORIGINATING_PROJECT_CLASSPATH, OTHER_REFERRING_PROJECTS_CLASSPATH, REPLACE
-
Konstruktorübersicht
ModifiziererKonstruktorBeschreibungprotected
ExternalPackageFragmentRoot
(org.eclipse.core.resources.IResource linkedFolder, org.eclipse.core.runtime.IPath externalPath, JavaProject project) protected
ExternalPackageFragmentRoot
(org.eclipse.core.runtime.IPath externalPath, JavaProject project) Constructs a package fragment root which is the root of the Java package directory hierarchy based on an external folder that is not contained in aIJavaProject
and does not have an associatedIResource
. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected int
determineKind
(org.eclipse.core.resources.IResource underlyingResource) An external class folder is always K_BINARY.boolean
Returns true if this handle represents the same external folder as the given handle.Returns the name of this element.int
getKind()
Returns this package fragment root's kind encoded as an integer.org.eclipse.core.runtime.IPath
getPath()
Returns the path to the innermost resource enclosing this element.org.eclipse.core.resources.IResource
Returns the smallest underlying resource that contains this element, ornull
if this element is not contained in a resource.int
hashCode()
Returns the hash code for this Java element.boolean
Returns whether this package fragment root is external to the workbench (that is, a local file), and has no underlying resource.org.eclipse.core.resources.IResource
resource
(PackageFragmentRoot root) protected boolean
resourceExists
(org.eclipse.core.resources.IResource underlyingResource) Returns whether the corresponding resource or associated file existsprotected void
toStringAncestors
(StringBuffer buffer) Debugging purposesVon Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.PackageFragmentRoot
attachSource, buildStructure, computeChildren, computeFolderChildren, copy, createElementInfo, createPackageFragment, delete, fullExclusionPatternChars, fullInclusionPatternChars, getAutomaticModuleDescription, getClassFilePath, getElementType, getHandleFromMemento, getHandleMemento, getHandleMementoDelimiter, getManifest, getModuleDescription, getNonJavaResources, getPackageFragment, getPackageFragment, getPackageFragment, getPackageName, getRawClasspathEntry, getResolvedClasspathEntry, getSourceAttachmentPath, getSourceAttachmentRootPath, getSourceMapper, hasChildren, hasCompilationUnit, ignoreOptionalProblems, internalPath, isArchive, isComplianceJava9OrHigher, move, resource, setSourceMapper, toStringInfo, validateExistence, validateOnClasspath, verifyAttachSource
Von Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.Openable
bufferChanged, canBeRemovedFromCache, canBufferBeRemovedFromCache, closeBuffer, closing, codeComplete, codeSelect, exists, findRecommendedLineSeparator, generateInfos, getBuffer, getBufferFactory, getBufferManager, getCorrespondingResource, getOpenable, getPackageFragmentRoot, getResource, hasBuffer, hasUnsavedChanges, ignoreErrorStatus, isConsistent, isOpen, isSourceElement, isStructureKnown, makeConsistent, open, openAncestors, openBuffer, save
Von Klasse geerbte Methoden org.aspectj.org.eclipse.jdt.internal.core.JavaElement
appendEscapedDelimiter, close, escapeMementoName, findNode, getAncestor, getAttachedJavadoc, getChildren, getChildrenOfType, getClassFile, getCompilationUnit, getElementInfo, getElementInfo, getHandleFromMemento, getHandleIdentifier, getHandleMemento, getJavadocBaseLocation, getJavaModel, getJavaProject, getLibraryJavadocLocation, getOpenableParent, getParent, getPrimaryElement, getPrimaryElement, getSchedulingRule, getSourceElementAt, getURLContents, isAncestorOf, isReadOnly, newDoesNotExistStatus, newJavaModelException, newNotPresentException, openWhenClosed, readableName, resolved, setParent, tabString, toDebugString, toString, toString, toStringChildren, toStringInfo, toStringName, toStringWithAncestors, toStringWithAncestors, unresolved, validateAndCache
Von Klasse geerbte Methoden org.eclipse.core.runtime.PlatformObject
getAdapter
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden org.eclipse.core.runtime.IAdaptable
getAdapter
Von Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.core.IJavaElement
exists, getAncestor, getAttachedJavadoc, getCorrespondingResource, getHandleIdentifier, getJavaModel, getJavaProject, getOpenable, getParent, getPrimaryElement, getResource, getSchedulingRule, isReadOnly, isStructureKnown
Von Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.core.IOpenable
close, findRecommendedLineSeparator, getBuffer, hasUnsavedChanges, isConsistent, isOpen, makeConsistent, open, save
Von Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.core.IParent
getChildren
-
Felddetails
-
externalPath
protected final org.eclipse.core.runtime.IPath externalPathThe path to the external folder (an OS path)
-
-
Konstruktordetails
-
ExternalPackageFragmentRoot
protected ExternalPackageFragmentRoot(org.eclipse.core.runtime.IPath externalPath, JavaProject project) Constructs a package fragment root which is the root of the Java package directory hierarchy based on an external folder that is not contained in aIJavaProject
and does not have an associatedIResource
. -
ExternalPackageFragmentRoot
protected ExternalPackageFragmentRoot(org.eclipse.core.resources.IResource linkedFolder, org.eclipse.core.runtime.IPath externalPath, JavaProject project)
-
-
Methodendetails
-
determineKind
protected int determineKind(org.eclipse.core.resources.IResource underlyingResource) An external class folder is always K_BINARY.- Setzt außer Kraft:
determineKind
in KlassePackageFragmentRoot
-
equals
Returns true if this handle represents the same external folder as the given handle.- Setzt außer Kraft:
equals
in KlassePackageFragmentRoot
- Siehe auch:
-
getElementName
Beschreibung aus Schnittstelle kopiert:IJavaElement
Returns the name of this element. This is a handle-only method.- Angegeben von:
getElementName
in SchnittstelleIJavaElement
- Setzt außer Kraft:
getElementName
in KlassePackageFragmentRoot
- Gibt zurück:
- the element name
- Siehe auch:
-
getKind
public int getKind()Beschreibung aus Schnittstelle kopiert:IPackageFragmentRoot
Returns this package fragment root's kind encoded as an integer. A package fragment root can contain source files (i.e. files with one of theJava-like extensions
, or.class
files, but not both. If the underlying folder or archive contains other kinds of files, they are ignored. In particular,.class
files are ignored under a source package fragment root, and source files are ignored under a binary package fragment root.- Angegeben von:
getKind
in SchnittstelleIPackageFragmentRoot
- Setzt außer Kraft:
getKind
in KlassePackageFragmentRoot
- Gibt zurück:
- this package fragment root's kind encoded as an integer
- Siehe auch:
-
getPath
public org.eclipse.core.runtime.IPath getPath()Beschreibung aus Schnittstelle kopiert:IJavaElement
Returns the path to the innermost resource enclosing this element. If this element is not included in an external library, the path returned is the full, absolute path to the underlying resource, relative to the workbench. If this element is included in an external library, the path returned is the absolute path to the archive or to the folder in the file system. This is a handle-only method.- Angegeben von:
getPath
in SchnittstelleIJavaElement
- Setzt außer Kraft:
getPath
in KlassePackageFragmentRoot
- Gibt zurück:
- the path to the innermost resource enclosing this element
- Siehe auch:
-
getUnderlyingResource
Beschreibung aus Schnittstelle kopiert:IJavaElement
Returns the smallest underlying resource that contains this element, ornull
if this element is not contained in a resource.- Angegeben von:
getUnderlyingResource
in SchnittstelleIJavaElement
- Setzt außer Kraft:
getUnderlyingResource
in KlassePackageFragmentRoot
- Gibt zurück:
- the underlying resource, or
null
if none - Löst aus:
JavaModelException
- if this element does not exist or if an exception occurs while accessing its underlying resource- Siehe auch:
-
hashCode
public int hashCode()Beschreibung aus Klasse kopiert:JavaElement
Returns the hash code for this Java element. By default, the hash code for an element is a combination of its name and parent's hash code. Elements with other requirements must override this method.- Setzt außer Kraft:
hashCode
in KlassePackageFragmentRoot
-
isExternal
public boolean isExternal()Beschreibung aus Schnittstelle kopiert:IPackageFragmentRoot
Returns whether this package fragment root is external to the workbench (that is, a local file), and has no underlying resource.This is a handle-only method.
- Angegeben von:
isExternal
in SchnittstelleIPackageFragmentRoot
- Setzt außer Kraft:
isExternal
in KlassePackageFragmentRoot
- Gibt zurück:
- true if this package fragment root is external to the workbench (that is, a local file), and has no underlying resource, false otherwise
- Siehe auch:
-
resource
- Setzt außer Kraft:
resource
in KlassePackageFragmentRoot
-
resourceExists
protected boolean resourceExists(org.eclipse.core.resources.IResource underlyingResource) Beschreibung aus Klasse kopiert:Openable
Returns whether the corresponding resource or associated file exists- Setzt außer Kraft:
resourceExists
in KlasseOpenable
-
toStringAncestors
Beschreibung aus Klasse kopiert:JavaElement
Debugging purposes- Setzt außer Kraft:
toStringAncestors
in KlasseJavaElement
-