Show / Hide Table of Contents

Class JSON5BaseListener

This class provides an empty implementation of IJSON5Listener, which can be extended to create a listener which only needs to handle a subset of the available methods.

Inheritance
System.Object
JSON5BaseListener
Implements
IJSON5Listener
Antlr4.Runtime.Tree.IParseTreeListener
Namespace: GCore.Antlr.Grammers.Json5
Assembly: Json5.dll
Syntax
public class JSON5BaseListener : object, IJSON5Listener, Antlr4.Runtime.Tree.IParseTreeListener

Methods

| Improve this Doc View Source

EnterArr(JSON5Parser.ArrContext)

Enter a parse tree produced by arr().

The default implementation does nothing.

Declaration
public virtual void EnterArr(JSON5Parser.ArrContext context)
Parameters
Type Name Description
JSON5Parser.ArrContext context

The parse tree.

| Improve this Doc View Source

EnterEveryRule(Antlr4.Runtime.ParserRuleContext)

Declaration
public virtual void EnterEveryRule(Antlr4.Runtime.ParserRuleContext context)
Parameters
Type Name Description
Antlr4.Runtime.ParserRuleContext context
Remarks

The default implementation does nothing.

| Improve this Doc View Source

EnterJson5(JSON5Parser.Json5Context)

Enter a parse tree produced by json5().

The default implementation does nothing.

Declaration
public virtual void EnterJson5(JSON5Parser.Json5Context context)
Parameters
Type Name Description
JSON5Parser.Json5Context context

The parse tree.

| Improve this Doc View Source

EnterKey(JSON5Parser.KeyContext)

Enter a parse tree produced by key().

The default implementation does nothing.

Declaration
public virtual void EnterKey(JSON5Parser.KeyContext context)
Parameters
Type Name Description
JSON5Parser.KeyContext context

The parse tree.

| Improve this Doc View Source

EnterNumber(JSON5Parser.NumberContext)

Enter a parse tree produced by number().

The default implementation does nothing.

Declaration
public virtual void EnterNumber(JSON5Parser.NumberContext context)
Parameters
Type Name Description
JSON5Parser.NumberContext context

The parse tree.

| Improve this Doc View Source

EnterObj(JSON5Parser.ObjContext)

Enter a parse tree produced by obj().

The default implementation does nothing.

Declaration
public virtual void EnterObj(JSON5Parser.ObjContext context)
Parameters
Type Name Description
JSON5Parser.ObjContext context

The parse tree.

| Improve this Doc View Source

EnterPair(JSON5Parser.PairContext)

Enter a parse tree produced by pair().

The default implementation does nothing.

Declaration
public virtual void EnterPair(JSON5Parser.PairContext context)
Parameters
Type Name Description
JSON5Parser.PairContext context

The parse tree.

| Improve this Doc View Source

EnterValue(JSON5Parser.ValueContext)

Enter a parse tree produced by value().

The default implementation does nothing.

Declaration
public virtual void EnterValue(JSON5Parser.ValueContext context)
Parameters
Type Name Description
JSON5Parser.ValueContext context

The parse tree.

| Improve this Doc View Source

ExitArr(JSON5Parser.ArrContext)

Exit a parse tree produced by arr().

The default implementation does nothing.

Declaration
public virtual void ExitArr(JSON5Parser.ArrContext context)
Parameters
Type Name Description
JSON5Parser.ArrContext context

The parse tree.

| Improve this Doc View Source

ExitEveryRule(Antlr4.Runtime.ParserRuleContext)

Declaration
public virtual void ExitEveryRule(Antlr4.Runtime.ParserRuleContext context)
Parameters
Type Name Description
Antlr4.Runtime.ParserRuleContext context
Remarks

The default implementation does nothing.

| Improve this Doc View Source

ExitJson5(JSON5Parser.Json5Context)

Exit a parse tree produced by json5().

The default implementation does nothing.

Declaration
public virtual void ExitJson5(JSON5Parser.Json5Context context)
Parameters
Type Name Description
JSON5Parser.Json5Context context

The parse tree.

| Improve this Doc View Source

ExitKey(JSON5Parser.KeyContext)

Exit a parse tree produced by key().

The default implementation does nothing.

Declaration
public virtual void ExitKey(JSON5Parser.KeyContext context)
Parameters
Type Name Description
JSON5Parser.KeyContext context

The parse tree.

| Improve this Doc View Source

ExitNumber(JSON5Parser.NumberContext)

Exit a parse tree produced by number().

The default implementation does nothing.

Declaration
public virtual void ExitNumber(JSON5Parser.NumberContext context)
Parameters
Type Name Description
JSON5Parser.NumberContext context

The parse tree.

| Improve this Doc View Source

ExitObj(JSON5Parser.ObjContext)

Exit a parse tree produced by obj().

The default implementation does nothing.

Declaration
public virtual void ExitObj(JSON5Parser.ObjContext context)
Parameters
Type Name Description
JSON5Parser.ObjContext context

The parse tree.

| Improve this Doc View Source

ExitPair(JSON5Parser.PairContext)

Exit a parse tree produced by pair().

The default implementation does nothing.

Declaration
public virtual void ExitPair(JSON5Parser.PairContext context)
Parameters
Type Name Description
JSON5Parser.PairContext context

The parse tree.

| Improve this Doc View Source

ExitValue(JSON5Parser.ValueContext)

Exit a parse tree produced by value().

The default implementation does nothing.

Declaration
public virtual void ExitValue(JSON5Parser.ValueContext context)
Parameters
Type Name Description
JSON5Parser.ValueContext context

The parse tree.

| Improve this Doc View Source

VisitErrorNode(Antlr4.Runtime.Tree.IErrorNode)

Declaration
public virtual void VisitErrorNode(Antlr4.Runtime.Tree.IErrorNode node)
Parameters
Type Name Description
Antlr4.Runtime.Tree.IErrorNode node
Remarks

The default implementation does nothing.

| Improve this Doc View Source

VisitTerminal(Antlr4.Runtime.Tree.ITerminalNode)

Declaration
public virtual void VisitTerminal(Antlr4.Runtime.Tree.ITerminalNode node)
Parameters
Type Name Description
Antlr4.Runtime.Tree.ITerminalNode node
Remarks

The default implementation does nothing.

Implements

IJSON5Listener
Antlr4.Runtime.Tree.IParseTreeListener
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX