Show / Hide Table of Contents

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
System.Object
JSONBaseVisitor<Result>
Implements
IJSONVisitor<Result>
IParseTreeVisitor<Result>
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 Source

VisitArr(JSONParser.ArrContext)

Visit a parse tree produced by arr().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitArr(JSONParser.ArrContext context)
Parameters
Type Name Description
JSONParser.ArrContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitJson(JSONParser.JsonContext)

Visit a parse tree produced by json().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitJson(JSONParser.JsonContext context)
Parameters
Type Name Description
JSONParser.JsonContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitObj(JSONParser.ObjContext)

Visit a parse tree produced by obj().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitObj(JSONParser.ObjContext context)
Parameters
Type Name Description
JSONParser.ObjContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitPair(JSONParser.PairContext)

Visit a parse tree produced by pair().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitPair(JSONParser.PairContext context)
Parameters
Type Name Description
JSONParser.PairContext context

The parse tree.

Returns
Type Description
Result
| Improve this Doc View Source

VisitValue(JSONParser.ValueContext)

Visit a parse tree produced by value().

The default implementation returns the result of calling on context.

Declaration
public virtual Result VisitValue(JSONParser.ValueContext context)
Parameters
Type Name Description
JSONParser.ValueContext context

The parse tree.

Returns
Type Description
Result

Implements

IJSONVisitor<Result>
IParseTreeVisitor<>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX