Record Class SanitizedCheckData
java.lang.Object
java.lang.Record
org.ek9lang.compiler.phase3.SanitizedCheckData
record SanitizedCheckData(String errorMessage, MethodSymbol superMethod, MethodSymbol thisMethod)
extends Record
Data holder for sanitized modifier checking between override and super methods.
-
Constructor Summary
ConstructorsConstructorDescriptionSanitizedCheckData(String errorMessage, MethodSymbol superMethod, MethodSymbol thisMethod) Creates an instance of aSanitizedCheckDatarecord class. -
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 thesuperMethodrecord component.Returns the value of thethisMethodrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SanitizedCheckData
SanitizedCheckData(String errorMessage, MethodSymbol superMethod, MethodSymbol thisMethod) Creates an instance of aSanitizedCheckDatarecord class.- Parameters:
errorMessage- the value for theerrorMessagerecord componentsuperMethod- the value for thesuperMethodrecord componentthisMethod- the value for thethisMethodrecord 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
Returns the value of theerrorMessagerecord component.- Returns:
- the value of the
errorMessagerecord component
-
superMethod
Returns the value of thesuperMethodrecord component.- Returns:
- the value of the
superMethodrecord component
-
thisMethod
Returns the value of thethisMethodrecord component.- Returns:
- the value of the
thisMethodrecord component
-