Show / Hide Table of Contents

Class JSONBaseListener

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

Inheritance
System.Object
JSONBaseListener
Implements
IJSONListener
Antlr4.Runtime.Tree.IParseTreeListener
Namespace: GCore.Antlr.Grammers.Json
Assembly: Json.dll
Syntax
public class JSONBaseListener : object, IJSONListener, Antlr4.Runtime.Tree.IParseTreeListener

Methods

| Improve this Doc View Source

EnterArr(JSONParser.ArrContext)

Enter a parse tree produced by arr().

The default implementation does nothing.

Declaration
public virtual void EnterArr(JSONParser.ArrContext context)
Parameters
Type Name Description
JSONParser.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

EnterJson(JSONParser.JsonContext)

Enter a parse tree produced by json().

The default implementation does nothing.

Declaration
public virtual void EnterJson(JSONParser.JsonContext context)
Parameters
Type Name Description
JSONParser.JsonContext context

The parse tree.

| Improve this Doc View Source

EnterObj(JSONParser.ObjContext)

Enter a parse tree produced by obj().

The default implementation does nothing.

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

The parse tree.

| Improve this Doc View Source

EnterPair(JSONParser.PairContext)

Enter a parse tree produced by pair().

The default implementation does nothing.

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

The parse tree.

| Improve this Doc View Source

EnterValue(JSONParser.ValueContext)

Enter a parse tree produced by value().

The default implementation does nothing.

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

The parse tree.

| Improve this Doc View Source

ExitArr(JSONParser.ArrContext)

Exit a parse tree produced by arr().

The default implementation does nothing.

Declaration
public virtual void ExitArr(JSONParser.ArrContext context)
Parameters
Type Name Description
JSONParser.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

ExitJson(JSONParser.JsonContext)

Exit a parse tree produced by json().

The default implementation does nothing.

Declaration
public virtual void ExitJson(JSONParser.JsonContext context)
Parameters
Type Name Description
JSONParser.JsonContext context

The parse tree.

| Improve this Doc View Source

ExitObj(JSONParser.ObjContext)

Exit a parse tree produced by obj().

The default implementation does nothing.

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

The parse tree.

| Improve this Doc View Source

ExitPair(JSONParser.PairContext)

Exit a parse tree produced by pair().

The default implementation does nothing.

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

The parse tree.

| Improve this Doc View Source

ExitValue(JSONParser.ValueContext)

Exit a parse tree produced by value().

The default implementation does nothing.

Declaration
public virtual void ExitValue(JSONParser.ValueContext context)
Parameters
Type Name Description
JSONParser.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

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