Record Class SanitizedCheckData
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase3.SanitizedCheckData
record SanitizedCheckData(Supplier<String> errorMessage, List<ISymbol> superParameters, List<ISymbol> thisParameters)
extends Record
Data holder for checking that an overriding declaration keeps every 'sanitized' parameter of the declaration it
overrides. Holds the two parameter lists, so the same check serves methods, functions and text locales.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorMessagerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thesuperParametersrecord component.Returns the value of thethisParametersrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SanitizedCheckData
SanitizedCheckData(Supplier<String> errorMessage, List<ISymbol> superParameters, List<ISymbol> thisParameters) Creates an instance of aSanitizedCheckDatarecord class.- Parameters:
errorMessage- the value for theerrorMessagerecord componentsuperParameters- the value for thesuperParametersrecord componentthisParameters- the value for thethisParametersrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
errorMessage
-
superParameters
-
thisParameters
-