- All Known Implementing Classes:
ESExprCodec.FailurePath.Constructor,ESExprCodec.FailurePath.Current,ESExprCodec.FailurePath.Keyword,ESExprCodec.FailurePath.Positional
- Enclosing class:
ESExprCodec<T>
public static sealed interface ESExprCodec.FailurePath
permits ESExprCodec.FailurePath.Current, ESExprCodec.FailurePath.Constructor, ESExprCodec.FailurePath.Positional, ESExprCodec.FailurePath.Keyword
The path of a decode failure.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordIndicates that the path ends at a constructor value.static final recordIndicates that the path ends at the current object.static final recordIndicates that the next part of the path is a keyword argument.static final recordIndicates that the next part of the path is a positional argument. -
Method Summary
Modifier and TypeMethodDescriptionGets a sub-path for a positional argument.Gets a sub-path for a keyword argument.appenderWithOffset(String constructor, int offset) Creates a path builder for a vararg.withConstructor(String constructor) Specifies the name of the constructor at the current path.
-
Method Details
-
append
Gets a sub-path for a positional argument.- 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.
-
appenderWithOffset
Creates a path builder for a vararg.- Parameters:
constructor- The constructor name of the object containing the value indicated by the new subpath.offset- The index offset of the positional argument indicated by the new subpath.- Returns:
- The path builder.
-
append
Gets a sub-path for a keyword argument.- 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
Specifies the name of the constructor at the current path.- Parameters:
constructor- The constructor name.- Returns:
- The sub-path.
-