Class XMLParserBaseListener
This class provides an empty implementation of IXMLParserListener, which can be extended to create a listener which only needs to handle a subset of the available methods.
Inheritance
Namespace: GCore.Antlr.Grammers.Xml
Assembly: Xml.dll
Syntax
public class XMLParserBaseListener : object, IXMLParserListener, Antlr4.Runtime.Tree.IParseTreeListener
Methods
| Improve this Doc View SourceEnterAttribute(XMLParser.AttributeContext)
Enter a parse tree produced by attribute().
The default implementation does nothing.
Declaration
public virtual void EnterAttribute(XMLParser.AttributeContext context)
Parameters
Type | Name | Description |
---|---|---|
XMLParser.AttributeContext | context | The parse tree. |
EnterChardata(XMLParser.ChardataContext)
Enter a parse tree produced by chardata().
The default implementation does nothing.
Declaration
public virtual void EnterChardata(XMLParser.ChardataContext context)
Parameters
Type | Name | Description |
---|---|---|
XMLParser.ChardataContext | context | The parse tree. |
EnterContent(XMLParser.ContentContext)
Enter a parse tree produced by content().
The default implementation does nothing.
Declaration
public virtual void EnterContent(XMLParser.ContentContext context)
Parameters
Type | Name | Description |
---|---|---|
XMLParser.ContentContext | context | The parse tree. |
EnterDocument(XMLParser.DocumentContext)
Enter a parse tree produced by document().
The default implementation does nothing.
Declaration
public virtual void EnterDocument(XMLParser.DocumentContext context)
Parameters
Type | Name | Description |
---|---|---|
XMLParser.DocumentContext | context | The parse tree. |
EnterElement(XMLParser.ElementContext)
Enter a parse tree produced by element().
The default implementation does nothing.
Declaration
public virtual void EnterElement(XMLParser.ElementContext context)
Parameters
Type | Name | Description |
---|---|---|
XMLParser.ElementContext | context | The parse tree. |
EnterEveryRule(Antlr4.Runtime.ParserRuleContext)
Declaration
public virtual void EnterEveryRule(Antlr4.Runtime.ParserRuleContext context)
Parameters
Type | Name | Description |
---|---|---|
Antlr4.Runtime.ParserRuleContext | context |
Remarks
The default implementation does nothing.
EnterMisc(XMLParser.MiscContext)
Enter a parse tree produced by misc().
The default implementation does nothing.
Declaration
public virtual void EnterMisc(XMLParser.MiscContext context)
Parameters
Type | Name | Description |
---|---|---|
XMLParser.MiscContext | context | The parse tree. |
EnterProlog(XMLParser.PrologContext)
Enter a parse tree produced by prolog().
The default implementation does nothing.
Declaration
public virtual void EnterProlog(XMLParser.PrologContext context)
Parameters
Type | Name | Description |
---|---|---|
XMLParser.PrologContext | context | The parse tree. |
EnterReference(XMLParser.ReferenceContext)
Enter a parse tree produced by reference().
The default implementation does nothing.
Declaration
public virtual void EnterReference(XMLParser.ReferenceContext context)
Parameters
Type | Name | Description |
---|---|---|
XMLParser.ReferenceContext | context | The parse tree. |
ExitAttribute(XMLParser.AttributeContext)
Exit a parse tree produced by attribute().
The default implementation does nothing.
Declaration
public virtual void ExitAttribute(XMLParser.AttributeContext context)
Parameters
Type | Name | Description |
---|---|---|
XMLParser.AttributeContext | context | The parse tree. |
ExitChardata(XMLParser.ChardataContext)
Exit a parse tree produced by chardata().
The default implementation does nothing.
Declaration
public virtual void ExitChardata(XMLParser.ChardataContext context)
Parameters
Type | Name | Description |
---|---|---|
XMLParser.ChardataContext | context | The parse tree. |
ExitContent(XMLParser.ContentContext)
Exit a parse tree produced by content().
The default implementation does nothing.
Declaration
public virtual void ExitContent(XMLParser.ContentContext context)
Parameters
Type | Name | Description |
---|---|---|
XMLParser.ContentContext | context | The parse tree. |
ExitDocument(XMLParser.DocumentContext)
Exit a parse tree produced by document().
The default implementation does nothing.
Declaration
public virtual void ExitDocument(XMLParser.DocumentContext context)
Parameters
Type | Name | Description |
---|---|---|
XMLParser.DocumentContext | context | The parse tree. |
ExitElement(XMLParser.ElementContext)
Exit a parse tree produced by element().
The default implementation does nothing.
Declaration
public virtual void ExitElement(XMLParser.ElementContext context)
Parameters
Type | Name | Description |
---|---|---|
XMLParser.ElementContext | context | The parse tree. |
ExitEveryRule(Antlr4.Runtime.ParserRuleContext)
Declaration
public virtual void ExitEveryRule(Antlr4.Runtime.ParserRuleContext context)
Parameters
Type | Name | Description |
---|---|---|
Antlr4.Runtime.ParserRuleContext | context |
Remarks
The default implementation does nothing.
ExitMisc(XMLParser.MiscContext)
Exit a parse tree produced by misc().
The default implementation does nothing.
Declaration
public virtual void ExitMisc(XMLParser.MiscContext context)
Parameters
Type | Name | Description |
---|---|---|
XMLParser.MiscContext | context | The parse tree. |
ExitProlog(XMLParser.PrologContext)
Exit a parse tree produced by prolog().
The default implementation does nothing.
Declaration
public virtual void ExitProlog(XMLParser.PrologContext context)
Parameters
Type | Name | Description |
---|---|---|
XMLParser.PrologContext | context | The parse tree. |
ExitReference(XMLParser.ReferenceContext)
Exit a parse tree produced by reference().
The default implementation does nothing.
Declaration
public virtual void ExitReference(XMLParser.ReferenceContext context)
Parameters
Type | Name | Description |
---|---|---|
XMLParser.ReferenceContext | context | The parse tree. |
VisitErrorNode(Antlr4.Runtime.Tree.IErrorNode)
Declaration
public virtual void VisitErrorNode(Antlr4.Runtime.Tree.IErrorNode node)
Parameters
Type | Name | Description |
---|---|---|
Antlr4.Runtime.Tree.IErrorNode | node |
Remarks
The default implementation does nothing.
VisitTerminal(Antlr4.Runtime.Tree.ITerminalNode)
Declaration
public virtual void VisitTerminal(Antlr4.Runtime.Tree.ITerminalNode node)
Parameters
Type | Name | Description |
---|---|---|
Antlr4.Runtime.Tree.ITerminalNode | node |
Remarks
The default implementation does nothing.