Class JrtPackageFragmentRoot
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.JarPackageFragmentRoot
org.aspectj.org.eclipse.jdt.internal.core.JrtPackageFragmentRoot
- All Implemented Interfaces:
IBufferChangedListener
,IJavaElement
,IOpenable
,IPackageFragmentRoot
,IParent
,IModulePathEntry
,org.eclipse.core.runtime.IAdaptable
A package fragment root that corresponds to a module in a JRT file system.
- See Also:
IPackageFragmentRoot
,JarPackageFragmentRootInfo
-
Field Summary
FieldsFields inherited from class org.aspectj.org.eclipse.jdt.internal.core.JarPackageFragmentRoot
EMPTY_LIST, extraAttributes, jarPath
Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.PackageFragmentRoot
ATTACHMENT_PROPERTY_DELIMITER, NO_SOURCE_ATTACHMENT, resource
Fields inherited from class 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
Fields inherited from interface 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
Fields inherited from interface 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
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
JrtPackageFragmentRoot(org.eclipse.core.runtime.IPath jrtPath, String moduleName, JavaProject project, IClasspathAttribute[] extraAttributes)
Constructs a package fragment root which represents a module contained in a JRT. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
computeChildren(OpenableElementInfo info, org.eclipse.core.resources.IResource underlyingResource)
Compute the package fragment children of this package fragment root.boolean
Returns true if this handle represents the same jar as the given handle.Returns the name of this element.Get the module that this entry contributes.char[][]
getModulesDeclaringPackage(String qualifiedPackageName, String requestedModuleName)
Answer the relevant modules that declare the given package.getPackageFragment(String[] pkgName)
int
hashCode()
Returns the hash code for this Java element.protected boolean
ignoreErrorStatus(org.eclipse.core.runtime.IStatus status)
protected boolean
protected void
toStringInfo(int tab, StringBuffer buffer, Object info, boolean showResolvedInfo)
Debugging purposesMethods inherited from class org.aspectj.org.eclipse.jdt.internal.core.JarPackageFragmentRoot
createChildren, createElementInfo, determineKind, getClassFilePath, getIndexPath, getJar, getKind, getManifest, getModuleDescription, getNonJavaResources, getPackageFragment, getUnderlyingResource, initRawPackageInfo, internalPath, isArchive, isExternal, isReadOnly, resource, resourceExists, toStringAncestors
Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.PackageFragmentRoot
attachSource, buildStructure, computeFolderChildren, copy, createPackageFragment, delete, fullExclusionPatternChars, fullInclusionPatternChars, getAutomaticModuleDescription, getElementType, getHandleFromMemento, getHandleMemento, getHandleMementoDelimiter, getPackageFragment, getPackageName, getPath, getRawClasspathEntry, getResolvedClasspathEntry, getSourceAttachmentPath, getSourceAttachmentRootPath, getSourceMapper, hasChildren, hasCompilationUnit, ignoreOptionalProblems, move, resource, setSourceMapper, validateExistence, validateOnClasspath, verifyAttachSource
Methods inherited from class 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, isConsistent, isOpen, isSourceElement, isStructureKnown, makeConsistent, open, openAncestors, openBuffer, save
Methods inherited from class 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, newDoesNotExistStatus, newJavaModelException, newNotPresentException, openWhenClosed, readableName, resolved, setParent, tabString, toDebugString, toString, toString, toStringChildren, toStringInfo, toStringName, toStringWithAncestors, toStringWithAncestors, unresolved, validateAndCache
Methods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapter
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IJavaElement
exists, getAncestor, getAttachedJavadoc, getCorrespondingResource, getHandleIdentifier, getJavaModel, getJavaProject, getOpenable, getParent, getPrimaryElement, getResource, getSchedulingRule, isStructureKnown
Methods inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.env.IModulePathEntry
getModule, hasCompilationUnit, isAutomaticModule, listPackages, servesModule
Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IOpenable
close, findRecommendedLineSeparator, getBuffer, hasUnsavedChanges, isConsistent, isOpen, makeConsistent, open, save
Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IParent
getChildren
-
Field Details
-
workingOnOldClasspath
-
-
Constructor Details
-
JrtPackageFragmentRoot
protected JrtPackageFragmentRoot(org.eclipse.core.runtime.IPath jrtPath, String moduleName, JavaProject project, IClasspathAttribute[] extraAttributes)Constructs a package fragment root which represents a module contained in a JRT.
-
-
Method Details
-
computeChildren
protected boolean computeChildren(OpenableElementInfo info, org.eclipse.core.resources.IResource underlyingResource) throws JavaModelExceptionDescription copied from class:JarPackageFragmentRoot
Compute the package fragment children of this package fragment root. These are all of the directory zip entries, and any directories implied by the path of class files contained in the jar of this package fragment root.- Overrides:
computeChildren
in classJarPackageFragmentRoot
- Throws:
JavaModelException
- The resource associated with this package fragment root does not exist
-
equals
Description copied from class:JarPackageFragmentRoot
Returns true if this handle represents the same jar as the given handle. Two jars are equal if they share the same zip file.- Overrides:
equals
in classJarPackageFragmentRoot
- See Also:
Object.equals(java.lang.Object)
-
getElementName
Description copied from interface:IJavaElement
Returns the name of this element. This is a handle-only method.- Specified by:
getElementName
in interfaceIJavaElement
- Overrides:
getElementName
in classJarPackageFragmentRoot
- Returns:
- the element name
- See Also:
IAdaptable
-
getPackageFragment
- Overrides:
getPackageFragment
in classJarPackageFragmentRoot
-
hashCode
public int hashCode()Description copied from class: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.- Overrides:
hashCode
in classJarPackageFragmentRoot
-
toStringInfo
Description copied from class:JavaElement
Debugging purposes- Overrides:
toStringInfo
in classPackageFragmentRoot
showResolvedInfo
- TODO
-
getModule
Description copied from interface:IModulePathEntry
Get the module that this entry contributes. May be null, for instance when this entry does not represent a single module- Specified by:
getModule
in interfaceIModulePathEntry
- Returns:
- The module that this entry contributes or null
-
isComplianceJava9OrHigher
protected boolean isComplianceJava9OrHigher()- Overrides:
isComplianceJava9OrHigher
in classPackageFragmentRoot
-
getModulesDeclaringPackage
public char[][] getModulesDeclaringPackage(String qualifiedPackageName, String requestedModuleName)Description copied from interface:IModulePathEntry
Answer the relevant modules that declare the given package. If moduleName is ModuleBinding.ANY then all packages are relevant, if moduleName is ModuleBinding.UNNAMED, then only packages in the unnamed module are relevant, otherwise consider only packages in the module identified by moduleName.- Specified by:
getModulesDeclaringPackage
in interfaceIModulePathEntry
-
ignoreErrorStatus
protected boolean ignoreErrorStatus(org.eclipse.core.runtime.IStatus status)- Overrides:
ignoreErrorStatus
in classOpenable
-