Record Class PackageDetails
java.lang.Object
java.lang.Record
org.ek9lang.compiler.common.PackageDetails
public record PackageDetails(String moduleName, boolean packagePresent, boolean publicAccess, String version, int versionNumberOnLine, String description, List<String> tags, String license, boolean applyStandardIncludes, List<String> includeFiles, boolean applyStandardExcludes, Map<String,String> deps, Map<String,String> excludeDeps, Map<String,String> devDeps, List<String> excludeFiles, List<String> programs, String dependencyFingerPrint)
extends Record
An immutable snapshot of EK9 main package directives.
Normally created by parsing an EK9 file.
-
Constructor Summary
ConstructorsConstructorDescriptionPackageDetails(String moduleName, boolean packagePresent, boolean publicAccess, String version, int versionNumberOnLine, String description, List<String> tags, String license, boolean applyStandardIncludes, List<String> includeFiles, boolean applyStandardExcludes, Map<String, String> deps, Map<String, String> excludeDeps, Map<String, String> devDeps, List<String> excludeFiles, List<String> programs, String dependencyFingerPrint) Creates an instance of aPackageDetailsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theapplyStandardExcludesrecord component.booleanReturns the value of theapplyStandardIncludesrecord component.Returns the value of thedependencyFingerPrintrecord component.deps()Returns the value of thedepsrecord component.Returns the value of thedescriptionrecord component.devDeps()Returns the value of thedevDepsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexcludeDepsrecord component.Returns the value of theexcludeFilesrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theincludeFilesrecord component.license()Returns the value of thelicenserecord component.Returns the value of themoduleNamerecord component.booleanReturns the value of thepackagePresentrecord component.programs()Returns the value of theprogramsrecord component.booleanReturns the value of thepublicAccessrecord component.tags()Returns the value of thetagsrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.intReturns the value of theversionNumberOnLinerecord component.
-
Constructor Details
-
PackageDetails
public PackageDetails(String moduleName, boolean packagePresent, boolean publicAccess, String version, int versionNumberOnLine, String description, List<String> tags, String license, boolean applyStandardIncludes, List<String> includeFiles, boolean applyStandardExcludes, Map<String, String> deps, Map<String, String> excludeDeps, Map<String, String> devDeps, List<String> excludeFiles, List<String> programs, String dependencyFingerPrint) Creates an instance of aPackageDetailsrecord class.- Parameters:
moduleName- the value for themoduleNamerecord componentpackagePresent- the value for thepackagePresentrecord componentpublicAccess- the value for thepublicAccessrecord componentversion- the value for theversionrecord componentversionNumberOnLine- the value for theversionNumberOnLinerecord componentdescription- the value for thedescriptionrecord componenttags- the value for thetagsrecord componentlicense- the value for thelicenserecord componentapplyStandardIncludes- the value for theapplyStandardIncludesrecord componentincludeFiles- the value for theincludeFilesrecord componentapplyStandardExcludes- the value for theapplyStandardExcludesrecord componentdeps- the value for thedepsrecord componentexcludeDeps- the value for theexcludeDepsrecord componentdevDeps- the value for thedevDepsrecord componentexcludeFiles- the value for theexcludeFilesrecord componentprograms- the value for theprogramsrecord componentdependencyFingerPrint- the value for thedependencyFingerPrintrecord 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
-
packagePresent
public boolean packagePresent()Returns the value of thepackagePresentrecord component.- Returns:
- the value of the
packagePresentrecord component
-
publicAccess
public boolean publicAccess()Returns the value of thepublicAccessrecord component.- Returns:
- the value of the
publicAccessrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
versionNumberOnLine
public int versionNumberOnLine()Returns the value of theversionNumberOnLinerecord component.- Returns:
- the value of the
versionNumberOnLinerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
tags
-
license
Returns the value of thelicenserecord component.- Returns:
- the value of the
licenserecord component
-
applyStandardIncludes
public boolean applyStandardIncludes()Returns the value of theapplyStandardIncludesrecord component.- Returns:
- the value of the
applyStandardIncludesrecord component
-
includeFiles
-
applyStandardExcludes
public boolean applyStandardExcludes()Returns the value of theapplyStandardExcludesrecord component.- Returns:
- the value of the
applyStandardExcludesrecord component
-
deps
-
excludeDeps
-
devDeps
-
excludeFiles
-
programs
-
dependencyFingerPrint
Returns the value of thedependencyFingerPrintrecord component.- Returns:
- the value of the
dependencyFingerPrintrecord component
-