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 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 a PackageDetails record class.
      Parameters:
      moduleName - the value for the moduleName record component
      packagePresent - the value for the packagePresent record component
      publicAccess - the value for the publicAccess record component
      version - the value for the version record component
      versionNumberOnLine - the value for the versionNumberOnLine record component
      description - the value for the description record component
      tags - the value for the tags record component
      license - the value for the license record component
      applyStandardIncludes - the value for the applyStandardIncludes record component
      includeFiles - the value for the includeFiles record component
      applyStandardExcludes - the value for the applyStandardExcludes record component
      deps - the value for the deps record component
      excludeDeps - the value for the excludeDeps record component
      devDeps - the value for the devDeps record component
      excludeFiles - the value for the excludeFiles record component
      programs - the value for the programs record component
      dependencyFingerPrint - the value for the dependencyFingerPrint record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • moduleName

      public String moduleName()
      Returns the value of the moduleName record component.
      Returns:
      the value of the moduleName record component
    • packagePresent

      public boolean packagePresent()
      Returns the value of the packagePresent record component.
      Returns:
      the value of the packagePresent record component
    • publicAccess

      public boolean publicAccess()
      Returns the value of the publicAccess record component.
      Returns:
      the value of the publicAccess record component
    • version

      public String version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component
    • versionNumberOnLine

      public int versionNumberOnLine()
      Returns the value of the versionNumberOnLine record component.
      Returns:
      the value of the versionNumberOnLine record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • tags

      public List<String> tags()
      Returns the value of the tags record component.
      Returns:
      the value of the tags record component
    • license

      public String license()
      Returns the value of the license record component.
      Returns:
      the value of the license record component
    • applyStandardIncludes

      public boolean applyStandardIncludes()
      Returns the value of the applyStandardIncludes record component.
      Returns:
      the value of the applyStandardIncludes record component
    • includeFiles

      public List<String> includeFiles()
      Returns the value of the includeFiles record component.
      Returns:
      the value of the includeFiles record component
    • applyStandardExcludes

      public boolean applyStandardExcludes()
      Returns the value of the applyStandardExcludes record component.
      Returns:
      the value of the applyStandardExcludes record component
    • deps

      public Map<String,String> deps()
      Returns the value of the deps record component.
      Returns:
      the value of the deps record component
    • excludeDeps

      public Map<String,String> excludeDeps()
      Returns the value of the excludeDeps record component.
      Returns:
      the value of the excludeDeps record component
    • devDeps

      public Map<String,String> devDeps()
      Returns the value of the devDeps record component.
      Returns:
      the value of the devDeps record component
    • excludeFiles

      public List<String> excludeFiles()
      Returns the value of the excludeFiles record component.
      Returns:
      the value of the excludeFiles record component
    • programs

      public List<String> programs()
      Returns the value of the programs record component.
      Returns:
      the value of the programs record component
    • dependencyFingerPrint

      public String dependencyFingerPrint()
      Returns the value of the dependencyFingerPrint record component.
      Returns:
      the value of the dependencyFingerPrint record component