java.lang.Object
java.lang.Record
dev.argon.esexpr.ESExprCodec.FailurePath.Positional
- Record Components:
constructor- The name of the constructor.index- The index of the positional argument.next- The next part of the path.
- All Implemented Interfaces:
ESExprCodec.FailurePath
- Enclosing interface:
ESExprCodec.FailurePath
public static record ESExprCodec.FailurePath.Positional(String constructor, int index, ESExprCodec.FailurePath next)
extends Record
implements ESExprCodec.FailurePath
Indicates that the next part of the path is a positional argument.
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.argon.esexpr.ESExprCodec.FailurePath
ESExprCodec.FailurePath.Constructor, ESExprCodec.FailurePath.Current, ESExprCodec.FailurePath.Keyword, ESExprCodec.FailurePath.Positional -
Constructor Summary
ConstructorsConstructorDescriptionPositional(String constructor, int index, ESExprCodec.FailurePath next) Creates an instance of aPositionalrecord class. -
Method Summary
Modifier and TypeMethodDescriptionGets a sub-path for a positional argument.Gets a sub-path for a keyword argument.Returns the value of theconstructorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intindex()Returns the value of theindexrecord component.next()Returns the value of thenextrecord component.final StringtoString()Returns a string representation of this record class.withConstructor(String constructor) Specifies the name of the constructor at the current path.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.argon.esexpr.ESExprCodec.FailurePath
appenderWithOffset
-
Constructor Details
-
Positional
Creates an instance of aPositionalrecord class.- Parameters:
constructor- the value for theconstructorrecord componentindex- the value for theindexrecord componentnext- the value for thenextrecord component
-
-
Method Details
-
append
Description copied from interface:ESExprCodec.FailurePathGets a sub-path for a positional argument.- Specified by:
appendin interfaceESExprCodec.FailurePath- Parameters:
constructor- The constructor name of the object containing the value indicated by the new subpath.index- The index of the positional argument indicated by the new subpath.- Returns:
- The sub-path.
-
append
Description copied from interface:ESExprCodec.FailurePathGets a sub-path for a keyword argument.- Specified by:
appendin interfaceESExprCodec.FailurePath- Parameters:
constructor- The constructor name of the object containing the value indicated by the new subpath.keyword- The name of the keyword argument indicated by the new subpath.- Returns:
- The sub-path.
-
withConstructor
Description copied from interface:ESExprCodec.FailurePathSpecifies the name of the constructor at the current path.- Specified by:
withConstructorin interfaceESExprCodec.FailurePath- Parameters:
constructor- The constructor name.- Returns:
- The sub-path.
-
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 '=='. -
constructor
Returns the value of theconstructorrecord component.- Returns:
- the value of the
constructorrecord component
-
index
-
next
-