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:
-
Field Summary
FieldsFields inherited from class org.aspectj.org.eclipse.jdt.internal.core.JarPackageFragmentRoot
extraAttributes, jarPathFields inherited from class org.aspectj.org.eclipse.jdt.internal.core.PackageFragmentRoot
ATTACHMENT_PROPERTY_DELIMITER, NO_SOURCE_ATTACHMENT, resourceFields 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_STRINGSFields 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_PARAMETERFields 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
ConstructorsModifierConstructorDescriptionprotectedJrtPackageFragmentRoot(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 intprotected booleancomputeChildren(OpenableElementInfo info, org.eclipse.core.resources.IResource underlyingResource) Compute the package fragment children of this package fragment root.booleanReturns 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) protected booleanignoreErrorStatus(org.eclipse.core.runtime.IStatus status) protected booleanprotected voidtoStringInfo(int tab, StringBuilder buffer, Object info, boolean showResolvedInfo) for debugging onlyMethods inherited from class org.aspectj.org.eclipse.jdt.internal.core.JarPackageFragmentRoot
createChildren, createElementInfo, determineKind, getClassFilePath, getClassNameSubFolder, getIndexPath, getJar, getKind, getManifest, getModuleDescription, getNonJavaResources, getPackageFragment, getUnderlyingResource, internalPath, isArchive, isExternal, isReadOnly, resource, resourceExists, toStringAncestorsMethods 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, verifyAttachSourceMethods 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, saveMethods 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, hashCode, isAncestorOf, newDoesNotExistStatus, newJavaModelException, newNotPresentException, openWhenClosed, readableName, resetHashCode, resolved, tabString, toDebugString, toString, toString, toStringChildren, toStringInfo, toStringName, toStringWithAncestors, toStringWithAncestors, unresolved, validateAndCacheMethods inherited from class org.eclipse.core.runtime.PlatformObject
getAdapterMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapterMethods inherited from interface org.aspectj.org.eclipse.jdt.core.IJavaElement
exists, getAncestor, getAttachedJavadoc, getCorrespondingResource, getHandleIdentifier, getJavaModel, getJavaProject, getOpenable, getParent, getPrimaryElement, getResource, getSchedulingRule, isStructureKnownMethods inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.env.IModulePathEntry
getModule, hasCompilationUnit, isAutomaticModule, listPackages, servesModuleMethods inherited from interface org.aspectj.org.eclipse.jdt.core.IOpenable
close, findRecommendedLineSeparator, getBuffer, hasUnsavedChanges, isConsistent, isOpen, makeConsistent, open, saveMethods inherited from interface org.aspectj.org.eclipse.jdt.core.IParent
getChildren
-
Field Details
-
moduleName
-
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 JavaModelException Description copied from class:JarPackageFragmentRootCompute 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:
computeChildrenin classJarPackageFragmentRoot- Throws:
JavaModelException- The resource associated with this package fragment root does not exist
-
equals
Description copied from class:JarPackageFragmentRootReturns true if this handle represents the same jar as the given handle. Two jars are equal if they share the same zip file.- Overrides:
equalsin classJarPackageFragmentRoot- See Also:
-
calculateHashCode
protected int calculateHashCode()- Overrides:
calculateHashCodein classJarPackageFragmentRoot
-
getElementName
Description copied from interface:IJavaElementReturns the name of this element. This is a handle-only method.- Specified by:
getElementNamein interfaceIJavaElement- Overrides:
getElementNamein classJarPackageFragmentRoot- Returns:
- the element name
- See Also:
-
getPackageFragment
- Overrides:
getPackageFragmentin classJarPackageFragmentRoot
-
toStringInfo
Description copied from class:PackageFragmentRootfor debugging only- Overrides:
toStringInfoin classPackageFragmentRoot- Parameters:
showResolvedInfo- TODO
-
getModule
Description copied from interface:IModulePathEntryGet the module that this entry contributes. May be null, for instance when this entry does not represent a single module- Specified by:
getModulein interfaceIModulePathEntry- Returns:
- The module that this entry contributes or null
-
isComplianceJava9OrHigher
protected boolean isComplianceJava9OrHigher()- Overrides:
isComplianceJava9OrHigherin classPackageFragmentRoot
-
getModulesDeclaringPackage
Description copied from interface:IModulePathEntryAnswer 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:
getModulesDeclaringPackagein interfaceIModulePathEntry
-
ignoreErrorStatus
protected boolean ignoreErrorStatus(org.eclipse.core.runtime.IStatus status) - Overrides:
ignoreErrorStatusin classOpenable
-