ParseResult class abstract
The result of a parse operation, where
- ParseResult.none means the input did not satisfy the parsers predicate
- ParseResult.success means the parses succeeded without a parameter and
- ParseResult.value<T> means the parser succeeded with a T
- ParseResult.noValue means the parser failed where a parameter was expected
Note that there is no ParseResult.error
or such, as a parser failing to
match a segment just means that the next one is tried.
- Implementers
Properties
Methods
-
applyTo(
ParseContext context) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
value<
T> (String key, T value) → ParseParamResult - ParseResult representing a successful match that injects a parameter into the ParseContext that can be queried with ParseContext.operator[].
Constants
- none → const ParseResult
- ParseResult representing no match
- noValue → const ParseParamResult
- ParseResult representing no match when otherwise a value was expected
- success → const ParseResult
- ParseResult representing a successful match that is not a parameter