Class smilesBaseVisitor<Result>
This class provides an empty implementation of IsmilesVisitor<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.Smiles
Assembly: Smiles.dll
Syntax
public class smilesBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IsmilesVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitAliphatic_organic(smilesParser.Aliphatic_organicContext)
Visit a parse tree produced by aliphatic_organic().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAliphatic_organic(smilesParser.Aliphatic_organicContext context)
Parameters
Type | Name | Description |
---|---|---|
smilesParser.Aliphatic_organicContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAromatic_organic(smilesParser.Aromatic_organicContext)
Visit a parse tree produced by aromatic_organic().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAromatic_organic(smilesParser.Aromatic_organicContext context)
Parameters
Type | Name | Description |
---|---|---|
smilesParser.Aromatic_organicContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAromatic_symbol(smilesParser.Aromatic_symbolContext)
Visit a parse tree produced by aromatic_symbol().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAromatic_symbol(smilesParser.Aromatic_symbolContext context)
Parameters
Type | Name | Description |
---|---|---|
smilesParser.Aromatic_symbolContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAtom(smilesParser.AtomContext)
Visit a parse tree produced by atom().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAtom(smilesParser.AtomContext context)
Parameters
Type | Name | Description |
---|---|---|
smilesParser.AtomContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitBond(smilesParser.BondContext)
Visit a parse tree produced by bond().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBond(smilesParser.BondContext context)
Parameters
Type | Name | Description |
---|---|---|
smilesParser.BondContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitBracket_atom(smilesParser.Bracket_atomContext)
Visit a parse tree produced by bracket_atom().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBracket_atom(smilesParser.Bracket_atomContext context)
Parameters
Type | Name | Description |
---|---|---|
smilesParser.Bracket_atomContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitBranch(smilesParser.BranchContext)
Visit a parse tree produced by branch().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBranch(smilesParser.BranchContext context)
Parameters
Type | Name | Description |
---|---|---|
smilesParser.BranchContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitBranched_atom(smilesParser.Branched_atomContext)
Visit a parse tree produced by branched_atom().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBranched_atom(smilesParser.Branched_atomContext context)
Parameters
Type | Name | Description |
---|---|---|
smilesParser.Branched_atomContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitChain(smilesParser.ChainContext)
Visit a parse tree produced by chain().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitChain(smilesParser.ChainContext context)
Parameters
Type | Name | Description |
---|---|---|
smilesParser.ChainContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCharge(smilesParser.ChargeContext)
Visit a parse tree produced by charge().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCharge(smilesParser.ChargeContext context)
Parameters
Type | Name | Description |
---|---|---|
smilesParser.ChargeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitChiral(smilesParser.ChiralContext)
Visit a parse tree produced by chiral().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitChiral(smilesParser.ChiralContext context)
Parameters
Type | Name | Description |
---|---|---|
smilesParser.ChiralContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitClass_(smilesParser.Class_Context)
Visit a parse tree produced by class_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitClass_(smilesParser.Class_Context context)
Parameters
Type | Name | Description |
---|---|---|
smilesParser.Class_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitElement_symbols(smilesParser.Element_symbolsContext)
Visit a parse tree produced by element_symbols().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitElement_symbols(smilesParser.Element_symbolsContext context)
Parameters
Type | Name | Description |
---|---|---|
smilesParser.Element_symbolsContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitHcount(smilesParser.HcountContext)
Visit a parse tree produced by hcount().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitHcount(smilesParser.HcountContext context)
Parameters
Type | Name | Description |
---|---|---|
smilesParser.HcountContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitIsotope(smilesParser.IsotopeContext)
Visit a parse tree produced by isotope().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIsotope(smilesParser.IsotopeContext context)
Parameters
Type | Name | Description |
---|---|---|
smilesParser.IsotopeContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRingbond(smilesParser.RingbondContext)
Visit a parse tree produced by ringbond().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitRingbond(smilesParser.RingbondContext context)
Parameters
Type | Name | Description |
---|---|---|
smilesParser.RingbondContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSmiles(smilesParser.SmilesContext)
Visit a parse tree produced by smiles().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSmiles(smilesParser.SmilesContext context)
Parameters
Type | Name | Description |
---|---|---|
smilesParser.SmilesContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSymbol(smilesParser.SymbolContext)
Visit a parse tree produced by symbol().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSymbol(smilesParser.SymbolContext context)
Parameters
Type | Name | Description |
---|---|---|
smilesParser.SymbolContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTerminator(smilesParser.TerminatorContext)
Visit a parse tree produced by terminator().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTerminator(smilesParser.TerminatorContext context)
Parameters
Type | Name | Description |
---|---|---|
smilesParser.TerminatorContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |