Package org.ek9lang.compiler.common
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
ConstructorDescriptionPackageDetails
(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 aPackageDetails
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of theapplyStandardExcludes
record component.boolean
Returns the value of theapplyStandardIncludes
record component.Returns the value of thedependencyFingerPrint
record component.deps()
Returns the value of thedeps
record component.Returns the value of thedescription
record component.devDeps()
Returns the value of thedevDeps
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theexcludeDeps
record component.Returns the value of theexcludeFiles
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of theincludeFiles
record component.license()
Returns the value of thelicense
record component.Returns the value of themoduleName
record component.boolean
Returns the value of thepackagePresent
record component.programs()
Returns the value of theprograms
record component.boolean
Returns the value of thepublicAccess
record component.tags()
Returns the value of thetags
record component.final String
toString()
Returns a string representation of this record class.version()
Returns the value of theversion
record component.int
Returns the value of theversionNumberOnLine
record 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 aPackageDetails
record class.- Parameters:
moduleName
- the value for themoduleName
record componentpackagePresent
- the value for thepackagePresent
record componentpublicAccess
- the value for thepublicAccess
record componentversion
- the value for theversion
record componentversionNumberOnLine
- the value for theversionNumberOnLine
record componentdescription
- the value for thedescription
record componenttags
- the value for thetags
record componentlicense
- the value for thelicense
record componentapplyStandardIncludes
- the value for theapplyStandardIncludes
record componentincludeFiles
- the value for theincludeFiles
record componentapplyStandardExcludes
- the value for theapplyStandardExcludes
record componentdeps
- the value for thedeps
record componentexcludeDeps
- the value for theexcludeDeps
record componentdevDeps
- the value for thedevDeps
record componentexcludeFiles
- the value for theexcludeFiles
record componentprograms
- the value for theprograms
record componentdependencyFingerPrint
- the value for thedependencyFingerPrint
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
moduleName
Returns the value of themoduleName
record component.- Returns:
- the value of the
moduleName
record component
-
packagePresent
public boolean packagePresent()Returns the value of thepackagePresent
record component.- Returns:
- the value of the
packagePresent
record component
-
publicAccess
public boolean publicAccess()Returns the value of thepublicAccess
record component.- Returns:
- the value of the
publicAccess
record component
-
version
Returns the value of theversion
record component.- Returns:
- the value of the
version
record component
-
versionNumberOnLine
public int versionNumberOnLine()Returns the value of theversionNumberOnLine
record component.- Returns:
- the value of the
versionNumberOnLine
record component
-
description
Returns the value of thedescription
record component.- Returns:
- the value of the
description
record component
-
tags
Returns the value of thetags
record component.- Returns:
- the value of the
tags
record component
-
license
Returns the value of thelicense
record component.- Returns:
- the value of the
license
record component
-
applyStandardIncludes
public boolean applyStandardIncludes()Returns the value of theapplyStandardIncludes
record component.- Returns:
- the value of the
applyStandardIncludes
record component
-
includeFiles
Returns the value of theincludeFiles
record component.- Returns:
- the value of the
includeFiles
record component
-
applyStandardExcludes
public boolean applyStandardExcludes()Returns the value of theapplyStandardExcludes
record component.- Returns:
- the value of the
applyStandardExcludes
record component
-
deps
Returns the value of thedeps
record component.- Returns:
- the value of the
deps
record component
-
excludeDeps
Returns the value of theexcludeDeps
record component.- Returns:
- the value of the
excludeDeps
record component
-
devDeps
Returns the value of thedevDeps
record component.- Returns:
- the value of the
devDeps
record component
-
excludeFiles
Returns the value of theexcludeFiles
record component.- Returns:
- the value of the
excludeFiles
record component
-
programs
Returns the value of theprograms
record component.- Returns:
- the value of the
programs
record component
-
dependencyFingerPrint
Returns the value of thedependencyFingerPrint
record component.- Returns:
- the value of the
dependencyFingerPrint
record component
-