Package sootup.java.core.signatures
Class ModuleSignature
java.lang.Object
sootup.java.core.signatures.ModuleSignature
- All Implemented Interfaces:
Signature
Represents a Java 9 module.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedModuleSignature(String moduleName) Construct Module Signature of a Java 9 module. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe name of the module.inthashCode()booleanstatic @NonNull ModuleSignatureReturns the uniqueModuleSignaturefor the given module name, so that equal module signatures are the same instance and may be compared with==.toString()
-
Field Details
-
UNNAMED_MODULE
The unnamed module. If a request is made to load a type whose package is not defined in any module then the module system load it from the classpath. To ensure that every type is associated with a module, the type is associated with the unnamed module. @see http://openjdk.java.net/projects/jigsaw/spec/sotms/#the-unnamed-module
-
-
Constructor Details
-
ModuleSignature
Construct Module Signature of a Java 9 module. Instances should only be created aIdentifierFactory- Parameters:
moduleName- module's name
-
-
Method Details
-
of
Returns the uniqueModuleSignaturefor the given module name, so that equal module signatures are the same instance and may be compared with==. -
equals
-
hashCode
public int hashCode() -
toString
-
getModuleName
The name of the module. -
isUnnamedModule
public boolean isUnnamedModule()
-