ParseResult class abstract

The result of a parse operation, where

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

hashCode int
The hash code for this object.
no setterinherited
matched bool
Whether this is a successful match
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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