Record Class SqlParser.SyntaxError
java.lang.Object
java.lang.Record
com.loomcache.server.query.SqlParser.SyntaxError
- All Implemented Interfaces:
SqlParser.ParseError
- Enclosing class:
SqlParser
public static record SqlParser.SyntaxError(String message, int position, int line, int column)
extends Record
implements SqlParser.ParseError
Concrete syntax error implementation.
-
Constructor Summary
ConstructorsConstructorDescriptionSyntaxError(String message, int position, int line, int column) Creates an instance of aSyntaxErrorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcolumn()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.intline()Returns the value of thelinerecord component.message()Returns the value of themessagerecord component.intposition()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SyntaxError
Creates an instance of aSyntaxErrorrecord class.- Parameters:
message- the value for themessagerecord componentposition- the value for thepositionrecord componentline- the value for thelinerecord componentcolumn- the value for thecolumnrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
message
Returns the value of themessagerecord component.- Specified by:
messagein interfaceSqlParser.ParseError- Returns:
- the value of the
messagerecord component
-
position
public int position()Returns the value of thepositionrecord component.- Specified by:
positionin interfaceSqlParser.ParseError- Returns:
- the value of the
positionrecord component
-
line
public int line()Returns the value of thelinerecord component.- Specified by:
linein interfaceSqlParser.ParseError- Returns:
- the value of the
linerecord component
-
column
public int column()Returns the value of thecolumnrecord component.- Specified by:
columnin interfaceSqlParser.ParseError- Returns:
- the value of the
columnrecord component
-