Record Class EvaluationError.ExtensionResultMismatch
java.lang.Object
java.lang.Record
ca.marcusdunn.jsonlens.path.evaluator.EvaluationError.ExtensionResultMismatch
- Record Components:
name- the function nameexpected- the declared result type
- All Implemented Interfaces:
EvaluationError
- Enclosing interface:
EvaluationError
public static record EvaluationError.ExtensionResultMismatch(String name, FunctionType expected)
extends Record
implements EvaluationError
A function extension returned an instance of the wrong type.
-
Nested Class Summary
Nested classes/interfaces inherited from interface EvaluationError
EvaluationError.ExtensionResultMismatch, EvaluationError.IntegerOutOfRange, EvaluationError.NodelistTooLarge, EvaluationError.QueryTooDeep, EvaluationError.RegexTooComplex, EvaluationError.SignatureMismatch, EvaluationError.UnknownFunction -
Constructor Summary
ConstructorsConstructorDescriptionExtensionResultMismatch(String name, FunctionType expected) Creates an instance of aExtensionResultMismatchrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.expected()Returns the value of theexpectedrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface EvaluationError
message
-
Constructor Details
-
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 withObjects::equals(Object,Object). -
name
-
expected
-