Package jjparse

Class Parsing.Result<T>

java.lang.Object
jjparse.Parsing.Result<T>
Type Parameters:
T - The covariant type of the parsed value in case of a Parsing.Success.
Direct Known Subclasses:
Parsing.Failure, Parsing.Success
Enclosing class:
Parsing<I>

public abstract sealed class Parsing.Result<T> extends Object permits Parsing<I>.Success<T>, Parsing<I>.Failure<T>
Represents the result of a parsing operation.

A Parsing.Result can either be a Parsing.Success or a Parsing.Failure, whereas a failure is further divided into:
Note: This class is intended to be immutable and hence covariant in its type parameter.
Author:
Björn Lötters
See Also: