Class JrtfsCodeBase
java.lang.Object
edu.umd.cs.findbugs.classfile.impl.AbstractScannableCodeBase
edu.umd.cs.findbugs.classfile.impl.JrtfsCodeBase
- All Implemented Interfaces:
ICodeBase
,IScannableCodeBase
,AutoCloseable
Code base supporting Java 9 new jimage packed modules
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
class
Nested classes/interfaces inherited from interface edu.umd.cs.findbugs.classfile.ICodeBase
ICodeBase.Discovered
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
This method should be called when done using the code base.private ICodeBaseEntry
createEntry
(String resourceName, String moduleName) boolean
(package private) static String
private static String
getPackage
(String resourceName) Get the filesystem pathname of this codebase.int
hashCode()
(package private) static boolean
isClassFile
(Path p) iterator()
Get an iterator over the resources in the this code base.lookupResource
(String resourceName) Look up a resource in this code base.toString()
Methods inherited from class edu.umd.cs.findbugs.classfile.impl.AbstractScannableCodeBase
addLastModifiedTime, addResourceNameTranslation, containsSourceFiles, getCodeBaseLocator, getHowDiscovered, getLastModifiedTime, isApplicationCodeBase, setApplicationCodeBase, setHowDiscovered, setLastModifiedTime, translateResourceName
-
Field Details
-
PRIME
private static final int PRIME- See Also:
-
fs
-
fileName
-
root
-
packageToModuleMap
Key is package name in bytecode notation (e.g. 'java/lang').Values are either plain Strings for single-module packages, or sets of Strings for packages spread over multiple modules
-
-
Constructor Details
-
JrtfsCodeBase
-
-
Method Details
-
createPackageToModuleMap
- Throws:
IOException
-
lookupResource
Description copied from interface:ICodeBase
Look up a resource in this code base.- Parameters:
resourceName
- name of the resource to look up- Returns:
- ICodeBaseEntry representing the resource or null if the resource cannot be found in this code base
-
createEntry
-
getPackage
-
getPathName
Description copied from interface:ICodeBase
Get the filesystem pathname of this codebase.- Returns:
- the filesystem pathname of this codebase, or null if this codebase is not accessible via the filesystem
-
hashCode
public int hashCode() -
equals
-
toString
-
close
public void close()Description copied from interface:ICodeBase
This method should be called when done using the code base. -
iterator
Description copied from interface:IScannableCodeBase
Get an iterator over the resources in the this code base.- Returns:
- ICodeBaseIterator over the resources in the code base
- Throws:
InterruptedException
-
fileName
-
isClassFile
-