Class moleculeBaseVisitor<Result>
This class provides an empty implementation of ImoleculeVisitor<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.Molecule
Assembly: Molecule.dll
Syntax
public class moleculeBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, ImoleculeVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitCount(moleculeParser.CountContext)
Visit a parse tree produced by count().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCount(moleculeParser.CountContext context)
Parameters
Type | Name | Description |
---|---|---|
moleculeParser.CountContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitElement(moleculeParser.ElementContext)
Visit a parse tree produced by element().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitElement(moleculeParser.ElementContext context)
Parameters
Type | Name | Description |
---|---|---|
moleculeParser.ElementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitGroup(moleculeParser.GroupContext)
Visit a parse tree produced by group().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitGroup(moleculeParser.GroupContext context)
Parameters
Type | Name | Description |
---|---|---|
moleculeParser.GroupContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitIon(moleculeParser.IonContext)
Visit a parse tree produced by ion().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIon(moleculeParser.IonContext context)
Parameters
Type | Name | Description |
---|---|---|
moleculeParser.IonContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMolecule(moleculeParser.MoleculeContext)
Visit a parse tree produced by molecule().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMolecule(moleculeParser.MoleculeContext context)
Parameters
Type | Name | Description |
---|---|---|
moleculeParser.MoleculeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPart_(moleculeParser.Part_Context)
Visit a parse tree produced by part_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPart_(moleculeParser.Part_Context context)
Parameters
Type | Name | Description |
---|---|---|
moleculeParser.Part_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStructure(moleculeParser.StructureContext)
Visit a parse tree produced by structure().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStructure(moleculeParser.StructureContext context)
Parameters
Type | Name | Description |
---|---|---|
moleculeParser.StructureContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSymbol(moleculeParser.SymbolContext)
Visit a parse tree produced by symbol().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSymbol(moleculeParser.SymbolContext context)
Parameters
Type | Name | Description |
---|---|---|
moleculeParser.SymbolContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |