Class JSONBaseVisitor<Result>
This class provides an empty implementation of IJSONVisitor<Result>, which can be extended to create a visitor which only needs to handle a subset of the available methods.
Inheritance
Namespace: GCore.Antlr.Grammers.Json
Assembly: Json.dll
Syntax
public class JSONBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IJSONVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitArr(JSONParser.ArrContext)
Visit a parse tree produced by arr().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitArr(JSONParser.ArrContext context)
Parameters
Type | Name | Description |
---|---|---|
JSONParser.ArrContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitJson(JSONParser.JsonContext)
Visit a parse tree produced by json().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitJson(JSONParser.JsonContext context)
Parameters
Type | Name | Description |
---|---|---|
JSONParser.JsonContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitObj(JSONParser.ObjContext)
Visit a parse tree produced by obj().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitObj(JSONParser.ObjContext context)
Parameters
Type | Name | Description |
---|---|---|
JSONParser.ObjContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPair(JSONParser.PairContext)
Visit a parse tree produced by pair().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPair(JSONParser.PairContext context)
Parameters
Type | Name | Description |
---|---|---|
JSONParser.PairContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitValue(JSONParser.ValueContext)
Visit a parse tree produced by value().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitValue(JSONParser.ValueContext context)
Parameters
Type | Name | Description |
---|---|---|
JSONParser.ValueContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |