Record Class StringConcatRewriter.ChainRendering
java.lang.Object
java.lang.Record
org.ek9lang.compiler.repair.StringConcatRewriter.ChainRendering
- Enclosing class:
StringConcatRewriter
static record StringConcatRewriter.ChainRendering(String rendered, int operandCount, int substitutionCount, String conflictKind, String reason, EK9Parser.ExpressionContext offender, String suggestedRewrite)
extends Record
A
+ chain rendered as a backtick String, or the first operand that cannot be one: set
rendered with the operand counts, or conflictKind/reason naming the refusal.-
Constructor Summary
ConstructorsConstructorDescriptionChainRendering(String rendered, int operandCount, int substitutionCount, String conflictKind, String reason, EK9Parser.ExpressionContext offender, String suggestedRewrite) Creates an instance of aChainRenderingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconflictKindrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.offender()Returns the value of theoffenderrecord component.intReturns the value of theoperandCountrecord component.reason()Returns the value of thereasonrecord component.(package private) static StringConcatRewriter.ChainRenderingrefused(String kind, String reason, EK9Parser.ExpressionContext offender, String suggestedRewrite) rendered()Returns the value of therenderedrecord component.intReturns the value of thesubstitutionCountrecord component.Returns the value of thesuggestedRewriterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ChainRendering
ChainRendering(String rendered, int operandCount, int substitutionCount, String conflictKind, String reason, EK9Parser.ExpressionContext offender, String suggestedRewrite) Creates an instance of aChainRenderingrecord class.- Parameters:
rendered- the value for therenderedrecord componentoperandCount- the value for theoperandCountrecord componentsubstitutionCount- the value for thesubstitutionCountrecord componentconflictKind- the value for theconflictKindrecord componentreason- the value for thereasonrecord componentoffender- the value for theoffenderrecord componentsuggestedRewrite- the value for thesuggestedRewriterecord component
-
-
Method Details
-
refused
static StringConcatRewriter.ChainRendering refused(String kind, String reason, EK9Parser.ExpressionContext offender, String suggestedRewrite) -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
rendered
Returns the value of therenderedrecord component.- Returns:
- the value of the
renderedrecord component
-
operandCount
public int operandCount()Returns the value of theoperandCountrecord component.- Returns:
- the value of the
operandCountrecord component
-
substitutionCount
public int substitutionCount()Returns the value of thesubstitutionCountrecord component.- Returns:
- the value of the
substitutionCountrecord component
-
conflictKind
Returns the value of theconflictKindrecord component.- Returns:
- the value of the
conflictKindrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
offender
Returns the value of theoffenderrecord component.- Returns:
- the value of the
offenderrecord component
-
suggestedRewrite
Returns the value of thesuggestedRewriterecord component.- Returns:
- the value of the
suggestedRewriterecord component
-