T - The return type of the visit operation. Use Void for
operations with no return type.public class JSONBaseVisitor<T> extends org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T> implements JSONVisitor<T>
JSONVisitor,
which can be extended to create a visitor which only needs to handle a subset
of the available methods.| Constructor and Description |
|---|
JSONBaseVisitor() |
| Modifier and Type | Method and Description |
|---|---|
T |
visitArray(JSONParser.ArrayContext ctx)
Visit a parse tree produced by
JSONParser.array(). |
T |
visitJson(JSONParser.JsonContext ctx)
Visit a parse tree produced by
JSONParser.json(). |
T |
visitObject(JSONParser.ObjectContext ctx)
Visit a parse tree produced by
JSONParser.object(). |
T |
visitPair(JSONParser.PairContext ctx)
Visit a parse tree produced by
JSONParser.pair(). |
T |
visitValue(JSONParser.ValueContext ctx)
Visit a parse tree produced by
JSONParser.value(). |
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminalpublic T visitArray(@NotNull JSONParser.ArrayContext ctx)
JSONParser.array().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitArray in interface JSONVisitor<T>ctx - the parse treepublic T visitJson(@NotNull JSONParser.JsonContext ctx)
JSONParser.json().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitJson in interface JSONVisitor<T>ctx - the parse treepublic T visitValue(@NotNull JSONParser.ValueContext ctx)
JSONParser.value().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitValue in interface JSONVisitor<T>ctx - the parse treepublic T visitPair(@NotNull JSONParser.PairContext ctx)
JSONParser.pair().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitPair in interface JSONVisitor<T>ctx - the parse treepublic T visitObject(@NotNull JSONParser.ObjectContext ctx)
JSONParser.object().
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.
visitObject in interface JSONVisitor<T>ctx - the parse tree