Class HTMLParserBaseVisitor<Result>
This class provides an empty implementation of IHTMLParserVisitor<Result>, which can be extended to create a visitor which only needs to handle a subset of the available methods.
Inheritance
Namespace: GCore.Antlr.Grammers.Html
Assembly: Html.dll
Syntax
public class HTMLParserBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IHTMLParserVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitHtmlAttribute(HTMLParser.HtmlAttributeContext)
Visit a parse tree produced by htmlAttribute().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitHtmlAttribute(HTMLParser.HtmlAttributeContext context)
Parameters
Type | Name | Description |
---|---|---|
HTMLParser.HtmlAttributeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitHtmlChardata(HTMLParser.HtmlChardataContext)
Visit a parse tree produced by htmlChardata().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitHtmlChardata(HTMLParser.HtmlChardataContext context)
Parameters
Type | Name | Description |
---|---|---|
HTMLParser.HtmlChardataContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitHtmlComment(HTMLParser.HtmlCommentContext)
Visit a parse tree produced by htmlComment().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitHtmlComment(HTMLParser.HtmlCommentContext context)
Parameters
Type | Name | Description |
---|---|---|
HTMLParser.HtmlCommentContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitHtmlContent(HTMLParser.HtmlContentContext)
Visit a parse tree produced by htmlContent().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitHtmlContent(HTMLParser.HtmlContentContext context)
Parameters
Type | Name | Description |
---|---|---|
HTMLParser.HtmlContentContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitHtmlDocument(HTMLParser.HtmlDocumentContext)
Visit a parse tree produced by htmlDocument().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitHtmlDocument(HTMLParser.HtmlDocumentContext context)
Parameters
Type | Name | Description |
---|---|---|
HTMLParser.HtmlDocumentContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitHtmlElement(HTMLParser.HtmlElementContext)
Visit a parse tree produced by htmlElement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitHtmlElement(HTMLParser.HtmlElementContext context)
Parameters
Type | Name | Description |
---|---|---|
HTMLParser.HtmlElementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitHtmlElements(HTMLParser.HtmlElementsContext)
Visit a parse tree produced by htmlElements().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitHtmlElements(HTMLParser.HtmlElementsContext context)
Parameters
Type | Name | Description |
---|---|---|
HTMLParser.HtmlElementsContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitHtmlMisc(HTMLParser.HtmlMiscContext)
Visit a parse tree produced by htmlMisc().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitHtmlMisc(HTMLParser.HtmlMiscContext context)
Parameters
Type | Name | Description |
---|---|---|
HTMLParser.HtmlMiscContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitScript(HTMLParser.ScriptContext)
Visit a parse tree produced by script().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitScript(HTMLParser.ScriptContext context)
Parameters
Type | Name | Description |
---|---|---|
HTMLParser.ScriptContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitScriptletOrSeaWs(HTMLParser.ScriptletOrSeaWsContext)
Visit a parse tree produced by scriptletOrSeaWs().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitScriptletOrSeaWs(HTMLParser.ScriptletOrSeaWsContext context)
Parameters
Type | Name | Description |
---|---|---|
HTMLParser.ScriptletOrSeaWsContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStyle(HTMLParser.StyleContext)
Visit a parse tree produced by style().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStyle(HTMLParser.StyleContext context)
Parameters
Type | Name | Description |
---|---|---|
HTMLParser.StyleContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |