Record Class CoverageHtmlResources.PackageInfo
java.lang.Object
java.lang.Record
org.ek9lang.cli.CoverageHtmlResources.PackageInfo
- Enclosing class:
CoverageHtmlResources
public static record CoverageHtmlResources.PackageInfo(String description, String version, String license, List<String> tags)
extends Record
Package metadata extracted from EK9 source files.
Contains optional metadata fields from defines package blocks:
- description - Human-readable package description
- version - Semantic version (major.minor.patch-build)
- license - License identifier (e.g., "MIT")
- tags - Categorization tags
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CoverageHtmlResources.PackageInfoEmpty package info when no package block is found. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanCheck if any metadata is present.license()Returns the value of thelicenserecord 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.
-
Field Details
-
EMPTY
Empty package info when no package block is found.
-
-
Constructor Details
-
PackageInfo
Creates an instance of aPackageInforecord class.- Parameters:
description- the value for thedescriptionrecord componentversion- the value for theversionrecord componentlicense- the value for thelicenserecord componenttags- the value for thetagsrecord component
-
-
Method Details
-
hasMetadata
public boolean hasMetadata()Check if any metadata is present. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
license
Returns the value of thelicenserecord component.- Returns:
- the value of the
licenserecord component
-
tags
-