public class JModPackageFragmentRoot extends JarPackageFragmentRoot
NOTE: The only visible entries from a Jmod package fragment root are .class files. The sub folder "classes" where the .class files are nested under is hidden from clients. THe package fragments appear to be directly under the package fragment roots.
NOTE: A JMod package fragment root may or may not have an associated resource.
IPackageFragmentRoot,
JarPackageFragmentRootInfoEMPTY_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 |
JModPackageFragmentRoot(IPath externalPath,
JavaProject project,
IClasspathAttribute[] extraAttributes)
Constructs a package fragment root which is the root of the Java package directory hierarchy
based on a JMOD file that is not contained in a
IJavaProject and
does not have an associated IResource. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getClassFilePath(java.lang.String entryName)
Returns the relative path within an archive for the given class file name.
|
protected void |
initRawPackageInfo(HashtableOfArrayToObject rawPackageInfo,
java.lang.String entryName,
boolean isDirectory,
java.lang.String compliance) |
computeChildren, createChildren, createElementInfo, determineKind, equals, getElementName, getIndexPath, getJar, getKind, getManifest, getModuleDescription, getNonJavaResources, getPackageFragment, getPackageFragment, getUnderlyingResource, hashCode, 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, isComplianceJava9OrHigher, move, resource, setSourceMapper, toStringInfo, validateExistence, validateOnClasspath, verifyAttachSourcebufferChanged, 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, 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, waitgetChildrenexists, getAncestor, getAttachedJavadoc, getCorrespondingResource, getHandleIdentifier, getJavaModel, getJavaProject, getOpenable, getParent, getPrimaryElement, getResource, getSchedulingRule, isStructureKnownclose, findRecommendedLineSeparator, getBuffer, hasUnsavedChanges, isConsistent, isOpen, makeConsistent, open, saveprotected JModPackageFragmentRoot(IPath externalPath,
JavaProject project,
IClasspathAttribute[] extraAttributes)
IJavaProject and
does not have an associated IResource.public java.lang.String getClassFilePath(java.lang.String entryName)
PackageFragmentRootgetClassFilePath in class JarPackageFragmentRootPackageFragmentRoot.getClassFilePath(String)protected void initRawPackageInfo(HashtableOfArrayToObject rawPackageInfo, java.lang.String entryName, boolean isDirectory, java.lang.String compliance)
initRawPackageInfo in class JarPackageFragmentRoot