Class newickBaseVisitor<Result>
This class provides an empty implementation of InewickVisitor<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.Newick
Assembly: Newick.dll
Syntax
public class newickBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, InewickVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitBranch(newickParser.BranchContext)
Visit a parse tree produced by branch().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBranch(newickParser.BranchContext context)
Parameters
Type | Name | Description |
---|---|---|
newickParser.BranchContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitBranchSet(newickParser.BranchSetContext)
Visit a parse tree produced by branchSet().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBranchSet(newickParser.BranchSetContext context)
Parameters
Type | Name | Description |
---|---|---|
newickParser.BranchSetContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitInternal_(newickParser.Internal_Context)
Visit a parse tree produced by internal_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitInternal_(newickParser.Internal_Context context)
Parameters
Type | Name | Description |
---|---|---|
newickParser.Internal_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLeaf(newickParser.LeafContext)
Visit a parse tree produced by leaf().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLeaf(newickParser.LeafContext context)
Parameters
Type | Name | Description |
---|---|---|
newickParser.LeafContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitLength(newickParser.LengthContext)
Visit a parse tree produced by length().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitLength(newickParser.LengthContext context)
Parameters
Type | Name | Description |
---|---|---|
newickParser.LengthContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitName(newickParser.NameContext)
Visit a parse tree produced by name().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitName(newickParser.NameContext context)
Parameters
Type | Name | Description |
---|---|---|
newickParser.NameContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRootInternal(newickParser.RootInternalContext)
Visit a parse tree produced by rootInternal().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitRootInternal(newickParser.RootInternalContext context)
Parameters
Type | Name | Description |
---|---|---|
newickParser.RootInternalContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRootLeaf(newickParser.RootLeafContext)
Visit a parse tree produced by rootLeaf().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitRootLeaf(newickParser.RootLeafContext context)
Parameters
Type | Name | Description |
---|---|---|
newickParser.RootLeafContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSubtree(newickParser.SubtreeContext)
Visit a parse tree produced by subtree().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSubtree(newickParser.SubtreeContext context)
Parameters
Type | Name | Description |
---|---|---|
newickParser.SubtreeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTree_(newickParser.Tree_Context)
Visit a parse tree produced by tree_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTree_(newickParser.Tree_Context context)
Parameters
Type | Name | Description |
---|---|---|
newickParser.Tree_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |