Record Class ParsedModuleDescriptor
java.lang.Object
java.lang.Record
dev.archunitjava.importer.ParsedModuleDescriptor
public record ParsedModuleDescriptor(String moduleName, int flags, Optional<String> version, List<ParsedModuleRequire> requires, List<ParsedModulePackageDirective> exports, List<ParsedModulePackageDirective> opens, List<String> usesBinaryNames, List<ParsedModuleProvide> provides)
extends Record
Backend-neutral explicit JPMS Module attribute.
-
Constructor Summary
ConstructorsConstructorDescriptionParsedModuleDescriptor(String moduleName, int flags, Optional<String> version, List<ParsedModuleRequire> requires, List<ParsedModulePackageDirective> exports, List<ParsedModulePackageDirective> opens, List<String> usesBinaryNames, List<ParsedModuleProvide> provides) Creates an instance of aParsedModuleDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.exports()Returns the value of theexportsrecord component.intflags()Returns the value of theflagsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themoduleNamerecord component.opens()Returns the value of theopensrecord component.provides()Returns the value of theprovidesrecord component.requires()Returns the value of therequiresrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theusesBinaryNamesrecord component.version()Returns the value of theversionrecord component.
-
Constructor Details
-
ParsedModuleDescriptor
public ParsedModuleDescriptor(String moduleName, int flags, Optional<String> version, List<ParsedModuleRequire> requires, List<ParsedModulePackageDirective> exports, List<ParsedModulePackageDirective> opens, List<String> usesBinaryNames, List<ParsedModuleProvide> provides) Creates an instance of aParsedModuleDescriptorrecord class.- Parameters:
moduleName- the value for themoduleNamerecord componentflags- the value for theflagsrecord componentversion- the value for theversionrecord componentrequires- the value for therequiresrecord componentexports- the value for theexportsrecord componentopens- the value for theopensrecord componentusesBinaryNames- the value for theusesBinaryNamesrecord componentprovides- the value for theprovidesrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
moduleName
Returns the value of themoduleNamerecord component.- Returns:
- the value of the
moduleNamerecord component
-
flags
public int flags()Returns the value of theflagsrecord component.- Returns:
- the value of the
flagsrecord component
-
version
-
requires
Returns the value of therequiresrecord component.- Returns:
- the value of the
requiresrecord component
-
exports
Returns the value of theexportsrecord component.- Returns:
- the value of the
exportsrecord component
-
opens
Returns the value of theopensrecord component.- Returns:
- the value of the
opensrecord component
-
usesBinaryNames
-
provides
Returns the value of theprovidesrecord component.- Returns:
- the value of the
providesrecord component
-