Class XMLParserBaseVisitor<T>
- java.lang.Object
-
- org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
-
- android.databinding.parser.XMLParserBaseVisitor<T>
-
- Type Parameters:
T- The return type of the visit operation. UseVoidfor operations with no return type.
- All Implemented Interfaces:
XMLParserVisitor<T>,org.antlr.v4.runtime.tree.ParseTreeVisitor<T>
public class XMLParserBaseVisitor<T> extends org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T> implements XMLParserVisitor<T>
This class provides an empty implementation ofXMLParserVisitor, which can be extended to create a visitor which only needs to handle a subset of the available methods.
-
-
Constructor Summary
Constructors Constructor Description XMLParserBaseVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TvisitAttribute(XMLParser.AttributeContext ctx)Visit a parse tree produced byXMLParser.attribute().TvisitChardata(XMLParser.ChardataContext ctx)Visit a parse tree produced byXMLParser.chardata().TvisitContent(XMLParser.ContentContext ctx)Visit a parse tree produced byXMLParser.content().TvisitDocument(XMLParser.DocumentContext ctx)Visit a parse tree produced byXMLParser.document().TvisitElement(XMLParser.ElementContext ctx)Visit a parse tree produced byXMLParser.element().TvisitMisc(XMLParser.MiscContext ctx)Visit a parse tree produced byXMLParser.misc().TvisitProlog(XMLParser.PrologContext ctx)Visit a parse tree produced byXMLParser.prolog().TvisitReference(XMLParser.ReferenceContext ctx)Visit a parse tree produced byXMLParser.reference().-
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal
-
-
-
-
Method Detail
-
visitDocument
public T visitDocument(XMLParser.DocumentContext ctx)
Visit a parse tree produced byXMLParser.document().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitDocumentin interfaceXMLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitProlog
public T visitProlog(XMLParser.PrologContext ctx)
Visit a parse tree produced byXMLParser.prolog().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitPrologin interfaceXMLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitContent
public T visitContent(XMLParser.ContentContext ctx)
Visit a parse tree produced byXMLParser.content().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitContentin interfaceXMLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitElement
public T visitElement(XMLParser.ElementContext ctx)
Visit a parse tree produced byXMLParser.element().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitElementin interfaceXMLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitReference
public T visitReference(XMLParser.ReferenceContext ctx)
Visit a parse tree produced byXMLParser.reference().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitReferencein interfaceXMLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitAttribute
public T visitAttribute(XMLParser.AttributeContext ctx)
Visit a parse tree produced byXMLParser.attribute().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitAttributein interfaceXMLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitChardata
public T visitChardata(XMLParser.ChardataContext ctx)
Visit a parse tree produced byXMLParser.chardata().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitChardatain interfaceXMLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
visitMisc
public T visitMisc(XMLParser.MiscContext ctx)
Visit a parse tree produced byXMLParser.misc().The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)onctx.- Specified by:
visitMiscin interfaceXMLParserVisitor<T>- Parameters:
ctx- the parse tree- Returns:
- the visitor result
-
-