import { ParseTreeListener } from 'antlr4'; import { JsonTextContext } from './JsonParser'; import { JsonValueContext } from './JsonParser'; import { JsonNumberContext } from './JsonParser'; import { JsonStringContext } from './JsonParser'; import { JsonKeyContext } from './JsonParser'; import { JsonObjectContext } from './JsonParser'; import { JsonKeyValueSeparatorContext } from './JsonParser'; import { MemberContext } from './JsonParser'; import { JsonArrayContext } from './JsonParser'; /** * This interface defines a complete listener for a parse tree produced by * `JsonParser`. */ export default class JsonListener extends ParseTreeListener { /** * Enter a parse tree produced by `JsonParser.jsonText`. * @param ctx the parse tree */ enterJsonText?: (ctx: JsonTextContext) => void; /** * Exit a parse tree produced by `JsonParser.jsonText`. * @param ctx the parse tree */ exitJsonText?: (ctx: JsonTextContext) => void; /** * Enter a parse tree produced by `JsonParser.jsonValue`. * @param ctx the parse tree */ enterJsonValue?: (ctx: JsonValueContext) => void; /** * Exit a parse tree produced by `JsonParser.jsonValue`. * @param ctx the parse tree */ exitJsonValue?: (ctx: JsonValueContext) => void; /** * Enter a parse tree produced by `JsonParser.jsonNumber`. * @param ctx the parse tree */ enterJsonNumber?: (ctx: JsonNumberContext) => void; /** * Exit a parse tree produced by `JsonParser.jsonNumber`. * @param ctx the parse tree */ exitJsonNumber?: (ctx: JsonNumberContext) => void; /** * Enter a parse tree produced by `JsonParser.jsonString`. * @param ctx the parse tree */ enterJsonString?: (ctx: JsonStringContext) => void; /** * Exit a parse tree produced by `JsonParser.jsonString`. * @param ctx the parse tree */ exitJsonString?: (ctx: JsonStringContext) => void; /** * Enter a parse tree produced by `JsonParser.jsonKey`. * @param ctx the parse tree */ enterJsonKey?: (ctx: JsonKeyContext) => void; /** * Exit a parse tree produced by `JsonParser.jsonKey`. * @param ctx the parse tree */ exitJsonKey?: (ctx: JsonKeyContext) => void; /** * Enter a parse tree produced by `JsonParser.jsonObject`. * @param ctx the parse tree */ enterJsonObject?: (ctx: JsonObjectContext) => void; /** * Exit a parse tree produced by `JsonParser.jsonObject`. * @param ctx the parse tree */ exitJsonObject?: (ctx: JsonObjectContext) => void; /** * Enter a parse tree produced by `JsonParser.jsonKeyValueSeparator`. * @param ctx the parse tree */ enterJsonKeyValueSeparator?: (ctx: JsonKeyValueSeparatorContext) => void; /** * Exit a parse tree produced by `JsonParser.jsonKeyValueSeparator`. * @param ctx the parse tree */ exitJsonKeyValueSeparator?: (ctx: JsonKeyValueSeparatorContext) => void; /** * Enter a parse tree produced by `JsonParser.member`. * @param ctx the parse tree */ enterMember?: (ctx: MemberContext) => void; /** * Exit a parse tree produced by `JsonParser.member`. * @param ctx the parse tree */ exitMember?: (ctx: MemberContext) => void; /** * Enter a parse tree produced by `JsonParser.jsonArray`. * @param ctx the parse tree */ enterJsonArray?: (ctx: JsonArrayContext) => void; /** * Exit a parse tree produced by `JsonParser.jsonArray`. * @param ctx the parse tree */ exitJsonArray?: (ctx: JsonArrayContext) => void; }