public class JrtPackageFragmentRoot extends JarPackageFragmentRoot implements IModulePathEntry
IPackageFragmentRoot,
JarPackageFragmentRootInfo| Modifier and Type | Field and Description |
|---|---|
static java.lang.ThreadLocal<java.lang.Boolean> |
workingOnOldClasspath |
EMPTY_LIST, extraAttributes, jarPathATTACHMENT_PROPERTY_DELIMITER, NO_SOURCE_ATTACHMENT, resourceJEM_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, parentDEFAULT_PACKAGEROOT_PATH, DESTINATION_PROJECT_CLASSPATH, K_BINARY, K_SOURCE, NO_RESOURCE_MODIFICATION, ORIGINATING_PROJECT_CLASSPATH, OTHER_REFERRING_PROJECTS_CLASSPATH, REPLACEANNOTATION, 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| Modifier | Constructor and Description |
|---|---|
protected |
JrtPackageFragmentRoot(IPath jrtPath,
java.lang.String moduleName,
JavaProject project,
IClasspathAttribute[] extraAttributes)
Constructs a package fragment root which represents a module
contained in a JRT.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
computeChildren(OpenableElementInfo info,
IResource underlyingResource)
Compute the package fragment children of this package fragment root.
|
boolean |
equals(java.lang.Object o)
Returns true if this handle represents the same jar
as the given handle.
|
java.lang.String |
getElementName()
Returns the name of this element.
|
IModule |
getModule()
Get the module that this entry contributes.
|
char[][] |
getModulesDeclaringPackage(java.lang.String qualifiedPackageName,
java.lang.String requestedModuleName)
Answer the relevant modules that declare the given package.
|
PackageFragment |
getPackageFragment(java.lang.String[] pkgName) |
int |
hashCode()
Returns the hash code for this Java element.
|
protected boolean |
ignoreErrorStatus(IStatus status) |
protected boolean |
isComplianceJava9OrHigher() |
protected void |
toStringInfo(int tab,
java.lang.StringBuffer buffer,
java.lang.Object info,
boolean showResolvedInfo)
Debugging purposes
|
createChildren, createElementInfo, determineKind, getClassFilePath, getIndexPath, getJar, getKind, getManifest, getModuleDescription, getNonJavaResources, getPackageFragment, getUnderlyingResource, initRawPackageInfo, internalPath, isArchive, isExternal, isReadOnly, resource, resourceExists, toStringAncestorsattachSource, 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, verifyAttachSourcebufferChanged, 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, saveappendEscapedDelimiter, 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, tabString, toDebugString, toString, toString, toStringChildren, toStringInfo, toStringName, toStringWithAncestors, toStringWithAncestors, unresolved, validateAndCacheclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetModule, hasCompilationUnit, isAutomaticModule, listPackages, servesModulegetChildrenexists, getAncestor, getAttachedJavadoc, getCorrespondingResource, getHandleIdentifier, getJavaModel, getJavaProject, getOpenable, getParent, getPrimaryElement, getResource, getSchedulingRule, isStructureKnownclose, findRecommendedLineSeparator, getBuffer, hasUnsavedChanges, isConsistent, isOpen, makeConsistent, open, savepublic static final java.lang.ThreadLocal<java.lang.Boolean> workingOnOldClasspath
protected JrtPackageFragmentRoot(IPath jrtPath,
java.lang.String moduleName,
JavaProject project,
IClasspathAttribute[] extraAttributes)
protected boolean computeChildren(OpenableElementInfo info, IResource underlyingResource) throws JavaModelException
JarPackageFragmentRootcomputeChildren in class JarPackageFragmentRootJavaModelException - The resource associated with this package fragment root does not existpublic boolean equals(java.lang.Object o)
JarPackageFragmentRootequals in class JarPackageFragmentRootObject.equals(java.lang.Object)public java.lang.String getElementName()
IJavaElementgetElementName in interface IJavaElementgetElementName in class JarPackageFragmentRootIAdaptablepublic PackageFragment getPackageFragment(java.lang.String[] pkgName)
getPackageFragment in class JarPackageFragmentRootpublic int hashCode()
JavaElementhashCode in class JarPackageFragmentRootprotected void toStringInfo(int tab,
java.lang.StringBuffer buffer,
java.lang.Object info,
boolean showResolvedInfo)
JavaElementtoStringInfo in class PackageFragmentRootshowResolvedInfo - TODOpublic IModule getModule()
IModulePathEntrygetModule in interface IModulePathEntryprotected boolean isComplianceJava9OrHigher()
isComplianceJava9OrHigher in class PackageFragmentRootpublic char[][] getModulesDeclaringPackage(java.lang.String qualifiedPackageName,
java.lang.String requestedModuleName)
IModulePathEntrygetModulesDeclaringPackage in interface IModulePathEntryprotected boolean ignoreErrorStatus(IStatus status)
ignoreErrorStatus in class Openable