Record Class ParseError.ControlCharacter
java.lang.Object
java.lang.Record
ca.marcusdunn.jsonlens.path.parser.ParseError.ControlCharacter
- Record Components:
position- the positioncodePoint- the control character
- All Implemented Interfaces:
ParseError
- Enclosing interface:
ParseError
public static record ParseError.ControlCharacter(int position, int codePoint)
extends Record
implements ParseError
A string literal contains an unescaped control character, U+0000 to U+001F (Section 2.3.1.1).
-
Nested Class Summary
Nested classes/interfaces inherited from interface ParseError
ParseError.ArgumentTypeMismatch, ParseError.ControlCharacter, ParseError.IntegerOutOfRange, ParseError.InvalidEscape, ParseError.InvalidInteger, ParseError.InvalidUtf8, ParseError.LiteralWithoutComparison, ParseError.NestingTooDeep, ParseError.NonSingularQuery, ParseError.NotComparable, ParseError.NumberOutOfRange, ParseError.UnexpectedCharacter, ParseError.UnexpectedEnd, ParseError.UnknownFunction, ParseError.UnpairedSurrogate, ParseError.ValueTypeInTest, ParseError.WrongArgumentCount -
Constructor Summary
ConstructorsConstructorDescriptionControlCharacter(int position, int codePoint) Creates an instance of aControlCharacterrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecodePointrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intposition()Returns the value of thepositionrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface ParseError
message
-
Constructor Details
-
ControlCharacter
-
-
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 with thecomparemethod from their corresponding wrapper classes. -
position
public int position()Returns the value of thepositionrecord component.- Specified by:
positionin interfaceParseError- Returns:
- the value of the
positionrecord component
-
codePoint
-