Record Class SyntaxProbe.SyntaxError
java.lang.Object
java.lang.Record
org.ek9lang.compiler.repair.SyntaxProbe.SyntaxError
- Record Components:
line- 1-based linecolumn- 0-based columncode- the parser's classification (E01084, E01086, E01093 ...), empty when it has nonemessage- the parser's reason ("mismatched input ',' expecting newline")symbol- the offending token as the parser shows it
- Enclosing class:
SyntaxProbe
-
Constructor Summary
ConstructorsConstructorDescriptionSyntaxError(int line, int column, String code, String message, String symbol) Creates an instance of aSyntaxErrorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionThe diagnostic map the repairs read:line,column,errorCode,message.code()Returns the value of thecoderecord component.intcolumn()Returns the value of thecolumnrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisBefore(SyntaxProbe.SyntaxError other) True when this error sits strictly beforeotherin the text.intline()Returns the value of thelinerecord component.message()Returns the value of themessagerecord component.symbol()Returns the value of thesymbolrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SyntaxError
Creates an instance of aSyntaxErrorrecord class.
-
-
Method Details
-
asDiagnostic
-
isBefore
True when this error sits strictly beforeotherin the text. -
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. -
line
-
column
-
code
-
message
-
symbol
-