java.lang.Object
java.lang.Record
dev.argon.esexpr.ESExprCodec.FailurePath.Constructor
- Record Components:
name- The name of the constructor.
- All Implemented Interfaces:
ESExprCodec.FailurePath
- Enclosing interface:
ESExprCodec.FailurePath
public static record ESExprCodec.FailurePath.Constructor(String name)
extends Record
implements ESExprCodec.FailurePath
Indicates that the path ends at a constructor value.
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets a sub-path for a positional argument.Gets a sub-path for a keyword argument.final booleanIndicates whether some other object is "equal to" this one.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.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
-
Constructor
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
name
-