Class useragentBaseVisitor<Result>
This class provides an empty implementation of IuseragentVisitor<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.Useragent
Assembly: Useragent.dll
Syntax
public class useragentBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IuseragentVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitComment(useragentParser.CommentContext)
Visit a parse tree produced by comment().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitComment(useragentParser.CommentContext context)
Parameters
Type | Name | Description |
---|---|---|
useragentParser.CommentContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitName(useragentParser.NameContext)
Visit a parse tree produced by name().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitName(useragentParser.NameContext context)
Parameters
Type | Name | Description |
---|---|---|
useragentParser.NameContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitProduct(useragentParser.ProductContext)
Visit a parse tree produced by product().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitProduct(useragentParser.ProductContext context)
Parameters
Type | Name | Description |
---|---|---|
useragentParser.ProductContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitProg(useragentParser.ProgContext)
Visit a parse tree produced by prog().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitProg(useragentParser.ProgContext context)
Parameters
Type | Name | Description |
---|---|---|
useragentParser.ProgContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitVersion(useragentParser.VersionContext)
Visit a parse tree produced by version().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitVersion(useragentParser.VersionContext context)
Parameters
Type | Name | Description |
---|---|---|
useragentParser.VersionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |