Record Class SourceRepairs.TextResult
java.lang.Object
java.lang.Record
org.ek9lang.compiler.repair.SourceRepairs.TextResult
- Record Components:
text- the repaired text (the input when nothing applied)corrected- one note per repair made, in ordersuggestions- what the writer could do about what still does not parse - nothing applied for itremaining- the first syntax error still there, or null when the text parses
- Enclosing class:
SourceRepairs
-
Constructor Summary
ConstructorsConstructorDescriptionTextResult(String text, List<String> corrected, List<String> suggestions, SyntaxProbe.SyntaxError remaining) Creates an instance of aTextResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecorrectedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanparses()Returns the value of theremainingrecord component.Returns the value of thesuggestionsrecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TextResult
public TextResult(String text, List<String> corrected, List<String> suggestions, SyntaxProbe.SyntaxError remaining) Creates an instance of aTextResultrecord class.- Parameters:
text- the value for thetextrecord componentcorrected- the value for thecorrectedrecord componentsuggestions- the value for thesuggestionsrecord componentremaining- the value for theremainingrecord component
-
-
Method Details
-
parses
public boolean parses() -
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). -
text
-
corrected
-
suggestions
Returns the value of thesuggestionsrecord component.- Returns:
- the value of the
suggestionsrecord component
-
remaining
-