Class telephoneBaseVisitor<Result>
This class provides an empty implementation of ItelephoneVisitor<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.Telephone
Assembly: Telephone.dll
Syntax
public class telephoneBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, ItelephoneVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
| Name | Description |
|---|---|
| Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitAreacode(telephoneParser.AreacodeContext)
Visit a parse tree produced by areacode().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitAreacode(telephoneParser.AreacodeContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| telephoneParser.AreacodeContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitExchange(telephoneParser.ExchangeContext)
Visit a parse tree produced by exchange().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitExchange(telephoneParser.ExchangeContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| telephoneParser.ExchangeContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitJapan(telephoneParser.JapanContext)
Visit a parse tree produced by japan().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitJapan(telephoneParser.JapanContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| telephoneParser.JapanContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitNanp(telephoneParser.NanpContext)
Visit a parse tree produced by nanp().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitNanp(telephoneParser.NanpContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| telephoneParser.NanpContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitNumber(telephoneParser.NumberContext)
Visit a parse tree produced by number().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitNumber(telephoneParser.NumberContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| telephoneParser.NumberContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitSubscriber(telephoneParser.SubscriberContext)
Visit a parse tree produced by subscriber().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitSubscriber(telephoneParser.SubscriberContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| telephoneParser.SubscriberContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitVariation(telephoneParser.VariationContext)
Visit a parse tree produced by variation().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitVariation(telephoneParser.VariationContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| telephoneParser.VariationContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |