Class HTMLParserBaseListener
This class provides an empty implementation of IHTMLParserListener, which can be extended to create a listener which only needs to handle a subset of the available methods.
Inheritance
Namespace: GCore.Antlr.Grammers.Html
Assembly: Html.dll
Syntax
public class HTMLParserBaseListener : object, IHTMLParserListener, Antlr4.Runtime.Tree.IParseTreeListener
Methods
| Improve this Doc View SourceEnterEveryRule(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.
EnterHtmlAttribute(HTMLParser.HtmlAttributeContext)
Enter a parse tree produced by htmlAttribute().
The default implementation does nothing.
Declaration
public virtual void EnterHtmlAttribute(HTMLParser.HtmlAttributeContext context)
Parameters
Type | Name | Description |
---|---|---|
HTMLParser.HtmlAttributeContext | context | The parse tree. |
EnterHtmlChardata(HTMLParser.HtmlChardataContext)
Enter a parse tree produced by htmlChardata().
The default implementation does nothing.
Declaration
public virtual void EnterHtmlChardata(HTMLParser.HtmlChardataContext context)
Parameters
Type | Name | Description |
---|---|---|
HTMLParser.HtmlChardataContext | context | The parse tree. |
EnterHtmlComment(HTMLParser.HtmlCommentContext)
Enter a parse tree produced by htmlComment().
The default implementation does nothing.
Declaration
public virtual void EnterHtmlComment(HTMLParser.HtmlCommentContext context)
Parameters
Type | Name | Description |
---|---|---|
HTMLParser.HtmlCommentContext | context | The parse tree. |
EnterHtmlContent(HTMLParser.HtmlContentContext)
Enter a parse tree produced by htmlContent().
The default implementation does nothing.
Declaration
public virtual void EnterHtmlContent(HTMLParser.HtmlContentContext context)
Parameters
Type | Name | Description |
---|---|---|
HTMLParser.HtmlContentContext | context | The parse tree. |
EnterHtmlDocument(HTMLParser.HtmlDocumentContext)
Enter a parse tree produced by htmlDocument().
The default implementation does nothing.
Declaration
public virtual void EnterHtmlDocument(HTMLParser.HtmlDocumentContext context)
Parameters
Type | Name | Description |
---|---|---|
HTMLParser.HtmlDocumentContext | context | The parse tree. |
EnterHtmlElement(HTMLParser.HtmlElementContext)
Enter a parse tree produced by htmlElement().
The default implementation does nothing.
Declaration
public virtual void EnterHtmlElement(HTMLParser.HtmlElementContext context)
Parameters
Type | Name | Description |
---|---|---|
HTMLParser.HtmlElementContext | context | The parse tree. |
EnterHtmlElements(HTMLParser.HtmlElementsContext)
Enter a parse tree produced by htmlElements().
The default implementation does nothing.
Declaration
public virtual void EnterHtmlElements(HTMLParser.HtmlElementsContext context)
Parameters
Type | Name | Description |
---|---|---|
HTMLParser.HtmlElementsContext | context | The parse tree. |
EnterHtmlMisc(HTMLParser.HtmlMiscContext)
Enter a parse tree produced by htmlMisc().
The default implementation does nothing.
Declaration
public virtual void EnterHtmlMisc(HTMLParser.HtmlMiscContext context)
Parameters
Type | Name | Description |
---|---|---|
HTMLParser.HtmlMiscContext | context | The parse tree. |
EnterScript(HTMLParser.ScriptContext)
Enter a parse tree produced by script().
The default implementation does nothing.
Declaration
public virtual void EnterScript(HTMLParser.ScriptContext context)
Parameters
Type | Name | Description |
---|---|---|
HTMLParser.ScriptContext | context | The parse tree. |
EnterScriptletOrSeaWs(HTMLParser.ScriptletOrSeaWsContext)
Enter a parse tree produced by scriptletOrSeaWs().
The default implementation does nothing.
Declaration
public virtual void EnterScriptletOrSeaWs(HTMLParser.ScriptletOrSeaWsContext context)
Parameters
Type | Name | Description |
---|---|---|
HTMLParser.ScriptletOrSeaWsContext | context | The parse tree. |
EnterStyle(HTMLParser.StyleContext)
Enter a parse tree produced by style().
The default implementation does nothing.
Declaration
public virtual void EnterStyle(HTMLParser.StyleContext context)
Parameters
Type | Name | Description |
---|---|---|
HTMLParser.StyleContext | 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.
ExitHtmlAttribute(HTMLParser.HtmlAttributeContext)
Exit a parse tree produced by htmlAttribute().
The default implementation does nothing.
Declaration
public virtual void ExitHtmlAttribute(HTMLParser.HtmlAttributeContext context)
Parameters
Type | Name | Description |
---|---|---|
HTMLParser.HtmlAttributeContext | context | The parse tree. |
ExitHtmlChardata(HTMLParser.HtmlChardataContext)
Exit a parse tree produced by htmlChardata().
The default implementation does nothing.
Declaration
public virtual void ExitHtmlChardata(HTMLParser.HtmlChardataContext context)
Parameters
Type | Name | Description |
---|---|---|
HTMLParser.HtmlChardataContext | context | The parse tree. |
ExitHtmlComment(HTMLParser.HtmlCommentContext)
Exit a parse tree produced by htmlComment().
The default implementation does nothing.
Declaration
public virtual void ExitHtmlComment(HTMLParser.HtmlCommentContext context)
Parameters
Type | Name | Description |
---|---|---|
HTMLParser.HtmlCommentContext | context | The parse tree. |
ExitHtmlContent(HTMLParser.HtmlContentContext)
Exit a parse tree produced by htmlContent().
The default implementation does nothing.
Declaration
public virtual void ExitHtmlContent(HTMLParser.HtmlContentContext context)
Parameters
Type | Name | Description |
---|---|---|
HTMLParser.HtmlContentContext | context | The parse tree. |
ExitHtmlDocument(HTMLParser.HtmlDocumentContext)
Exit a parse tree produced by htmlDocument().
The default implementation does nothing.
Declaration
public virtual void ExitHtmlDocument(HTMLParser.HtmlDocumentContext context)
Parameters
Type | Name | Description |
---|---|---|
HTMLParser.HtmlDocumentContext | context | The parse tree. |
ExitHtmlElement(HTMLParser.HtmlElementContext)
Exit a parse tree produced by htmlElement().
The default implementation does nothing.
Declaration
public virtual void ExitHtmlElement(HTMLParser.HtmlElementContext context)
Parameters
Type | Name | Description |
---|---|---|
HTMLParser.HtmlElementContext | context | The parse tree. |
ExitHtmlElements(HTMLParser.HtmlElementsContext)
Exit a parse tree produced by htmlElements().
The default implementation does nothing.
Declaration
public virtual void ExitHtmlElements(HTMLParser.HtmlElementsContext context)
Parameters
Type | Name | Description |
---|---|---|
HTMLParser.HtmlElementsContext | context | The parse tree. |
ExitHtmlMisc(HTMLParser.HtmlMiscContext)
Exit a parse tree produced by htmlMisc().
The default implementation does nothing.
Declaration
public virtual void ExitHtmlMisc(HTMLParser.HtmlMiscContext context)
Parameters
Type | Name | Description |
---|---|---|
HTMLParser.HtmlMiscContext | context | The parse tree. |
ExitScript(HTMLParser.ScriptContext)
Exit a parse tree produced by script().
The default implementation does nothing.
Declaration
public virtual void ExitScript(HTMLParser.ScriptContext context)
Parameters
Type | Name | Description |
---|---|---|
HTMLParser.ScriptContext | context | The parse tree. |
ExitScriptletOrSeaWs(HTMLParser.ScriptletOrSeaWsContext)
Exit a parse tree produced by scriptletOrSeaWs().
The default implementation does nothing.
Declaration
public virtual void ExitScriptletOrSeaWs(HTMLParser.ScriptletOrSeaWsContext context)
Parameters
Type | Name | Description |
---|---|---|
HTMLParser.ScriptletOrSeaWsContext | context | The parse tree. |
ExitStyle(HTMLParser.StyleContext)
Exit a parse tree produced by style().
The default implementation does nothing.
Declaration
public virtual void ExitStyle(HTMLParser.StyleContext context)
Parameters
Type | Name | Description |
---|---|---|
HTMLParser.StyleContext | 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.