Record Class ParseError.ArgumentTypeMismatch
java.lang.Object
java.lang.Record
ca.marcusdunn.jsonlens.path.parser.ParseError.ArgumentTypeMismatch
- Record Components:
position- the position of the argumentfunction- the function nameargument- the number of the argument, starting at 1expected- the declared type of the parameter
- All Implemented Interfaces:
ParseError
- Enclosing interface:
ParseError
public static record ParseError.ArgumentTypeMismatch(int position, String function, int argument, FunctionType expected)
extends Record
implements ParseError
An argument does not agree with the declared type of its parameter (Section 2.4.3).
-
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
ConstructorsConstructorDescriptionArgumentTypeMismatch(int position, String function, int argument, FunctionType expected) Creates an instance of aArgumentTypeMismatchrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintargument()Returns the value of theargumentrecord component.final booleanIndicates whether some other object is "equal to" this one.expected()Returns the value of theexpectedrecord component.function()Returns the value of thefunctionrecord component.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
-
ArgumentTypeMismatch
Creates an instance of aArgumentTypeMismatchrecord class.
-
-
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. -
position
public int position()Returns the value of thepositionrecord component.- Specified by:
positionin interfaceParseError- Returns:
- the value of the
positionrecord component
-
function
-
argument
-
expected
-