JisonParser class abstract
The base class of the parser. By default, DefaultJisonParser is used.
If you prefer to provide your own implementation of getParseErrorMessage
and getParseErrorMessage
, you extend from JisonParser by specifying
@extends YourClass
.
If you'd like to extend from JisonParser, you have to do:
%class abstract YourAbstractParser
%extends JisonParser
Then, you have to implement getParseErrorMessage
and getParseErrorMessage
.
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getLexerErrorMessage(
int lineNo, int position, String input, String matched, String match) → String - Retrieves the error message for a lexer error.
-
getParserErrorMessage(
int lineNo, int position, String input, String matched, String match, List< String> expected, String unexpected) → String - Retrieves the error message for a parser error.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse(
String input) → Object -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited