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
Namespace: GCore.Antlr.Grammers.Json5
Assembly: Json5.dll
Syntax
public class JSON5BaseListener : object, IJSON5Listener, Antlr4.Runtime.Tree.IParseTreeListener
Methods
| Improve this Doc View SourceEnterArr(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. |
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.
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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.
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. |
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. |
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. |
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. |
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. |
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. |
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.
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.