Class gedcomBaseVisitor<Result>
This class provides an empty implementation of IgedcomVisitor<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.Gedcom
Assembly: Gedcom.dll
Syntax
public class gedcomBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IgedcomVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitAlphanum(gedcomParser.AlphanumContext)
Visit a parse tree produced by alphanum().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAlphanum(gedcomParser.AlphanumContext context)
Parameters
Type | Name | Description |
---|---|---|
gedcomParser.AlphanumContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAnychar(gedcomParser.AnycharContext)
Visit a parse tree produced by anychar().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAnychar(gedcomParser.AnycharContext context)
Parameters
Type | Name | Description |
---|---|---|
gedcomParser.AnycharContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitEscape(gedcomParser.EscapeContext)
Visit a parse tree produced by escape().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitEscape(gedcomParser.EscapeContext context)
Parameters
Type | Name | Description |
---|---|---|
gedcomParser.EscapeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitEscape_text(gedcomParser.Escape_textContext)
Visit a parse tree produced by escape_text().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitEscape_text(gedcomParser.Escape_textContext context)
Parameters
Type | Name | Description |
---|---|---|
gedcomParser.Escape_textContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitGedcom(gedcomParser.GedcomContext)
Visit a parse tree produced by gedcom().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitGedcom(gedcomParser.GedcomContext context)
Parameters
Type | Name | Description |
---|---|---|
gedcomParser.GedcomContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLevel(gedcomParser.LevelContext)
Visit a parse tree produced by level().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLevel(gedcomParser.LevelContext context)
Parameters
Type | Name | Description |
---|---|---|
gedcomParser.LevelContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLine(gedcomParser.LineContext)
Visit a parse tree produced by line().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLine(gedcomParser.LineContext context)
Parameters
Type | Name | Description |
---|---|---|
gedcomParser.LineContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLine_item(gedcomParser.Line_itemContext)
Visit a parse tree produced by line_item().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLine_item(gedcomParser.Line_itemContext context)
Parameters
Type | Name | Description |
---|---|---|
gedcomParser.Line_itemContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLine_value(gedcomParser.Line_valueContext)
Visit a parse tree produced by line_value().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLine_value(gedcomParser.Line_valueContext context)
Parameters
Type | Name | Description |
---|---|---|
gedcomParser.Line_valueContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNon_at(gedcomParser.Non_atContext)
Visit a parse tree produced by non_at().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNon_at(gedcomParser.Non_atContext context)
Parameters
Type | Name | Description |
---|---|---|
gedcomParser.Non_atContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitOpt_xref_id(gedcomParser.Opt_xref_idContext)
Visit a parse tree produced by opt_xref_id().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitOpt_xref_id(gedcomParser.Opt_xref_idContext context)
Parameters
Type | Name | Description |
---|---|---|
gedcomParser.Opt_xref_idContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitOtherchar(gedcomParser.OthercharContext)
Visit a parse tree produced by otherchar().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitOtherchar(gedcomParser.OthercharContext context)
Parameters
Type | Name | Description |
---|---|---|
gedcomParser.OthercharContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPointer(gedcomParser.PointerContext)
Visit a parse tree produced by pointer().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPointer(gedcomParser.PointerContext context)
Parameters
Type | Name | Description |
---|---|---|
gedcomParser.PointerContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPointer_char(gedcomParser.Pointer_charContext)
Visit a parse tree produced by pointer_char().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPointer_char(gedcomParser.Pointer_charContext context)
Parameters
Type | Name | Description |
---|---|---|
gedcomParser.Pointer_charContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPointer_string(gedcomParser.Pointer_stringContext)
Visit a parse tree produced by pointer_string().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPointer_string(gedcomParser.Pointer_stringContext context)
Parameters
Type | Name | Description |
---|---|---|
gedcomParser.Pointer_stringContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTag(gedcomParser.TagContext)
Visit a parse tree produced by tag().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTag(gedcomParser.TagContext context)
Parameters
Type | Name | Description |
---|---|---|
gedcomParser.TagContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |