T
- The return type of the visit operation. Use Void
for
operations with no return type.public class XMLParserBaseVisitor<T> extends org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T> implements XMLParserVisitor<T>
XMLParserVisitor
,
which can be extended to create a visitor which only needs to handle a subset
of the available methods.Constructor and Description |
---|
XMLParserBaseVisitor() |
Modifier and Type | Method and Description |
---|---|
T |
visitAttribute(XMLParser.AttributeContext ctx)
Visit a parse tree produced by
XMLParser.attribute() . |
T |
visitChardata(XMLParser.ChardataContext ctx)
Visit a parse tree produced by
XMLParser.chardata() . |
T |
visitContent(XMLParser.ContentContext ctx)
Visit a parse tree produced by
XMLParser.content() . |
T |
visitDocument(XMLParser.DocumentContext ctx)
Visit a parse tree produced by
XMLParser.document() . |
T |
visitElement(XMLParser.ElementContext ctx)
Visit a parse tree produced by
XMLParser.element() . |
T |
visitMisc(XMLParser.MiscContext ctx)
Visit a parse tree produced by
XMLParser.misc() . |
T |
visitProlog(XMLParser.PrologContext ctx)
Visit a parse tree produced by
XMLParser.prolog() . |
T |
visitReference(XMLParser.ReferenceContext ctx)
Visit a parse tree produced by
XMLParser.reference() . |
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
public T visitDocument(XMLParser.DocumentContext ctx)
XMLParser.document()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitDocument
in interface XMLParserVisitor<T>
ctx
- the parse treepublic T visitProlog(XMLParser.PrologContext ctx)
XMLParser.prolog()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitProlog
in interface XMLParserVisitor<T>
ctx
- the parse treepublic T visitContent(XMLParser.ContentContext ctx)
XMLParser.content()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitContent
in interface XMLParserVisitor<T>
ctx
- the parse treepublic T visitElement(XMLParser.ElementContext ctx)
XMLParser.element()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitElement
in interface XMLParserVisitor<T>
ctx
- the parse treepublic T visitReference(XMLParser.ReferenceContext ctx)
XMLParser.reference()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitReference
in interface XMLParserVisitor<T>
ctx
- the parse treepublic T visitAttribute(XMLParser.AttributeContext ctx)
XMLParser.attribute()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitAttribute
in interface XMLParserVisitor<T>
ctx
- the parse treepublic T visitChardata(XMLParser.ChardataContext ctx)
XMLParser.chardata()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitChardata
in interface XMLParserVisitor<T>
ctx
- the parse treepublic T visitMisc(XMLParser.MiscContext ctx)
XMLParser.misc()
.
The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
on ctx
.
visitMisc
in interface XMLParserVisitor<T>
ctx
- the parse treeCopyright © 2024. All rights reserved.