Class STLBaseListener
This class provides an empty implementation of ISTLListener, which can be extended to create a listener which only needs to handle a subset of the available methods.
Inheritance
Namespace: GCore.Antlr.Grammers.Stl
Assembly: Stl.dll
Syntax
public class STLBaseListener : object, ISTLListener, Antlr4.Runtime.Tree.IParseTreeListener
Methods
| Improve this Doc View SourceEnterEveryRule(Antlr4.Runtime.ParserRuleContext)
Declaration
public virtual void EnterEveryRule(Antlr4.Runtime.ParserRuleContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| Antlr4.Runtime.ParserRuleContext | context |
Remarks
The default implementation does nothing.
EnterFile_(STLParser.File_Context)
Enter a parse tree produced by file_().
The default implementation does nothing.
Declaration
public virtual void EnterFile_(STLParser.File_Context context)
Parameters
| Type | Name | Description |
|---|---|---|
| STLParser.File_Context | context | The parse tree. |
EnterFooter(STLParser.FooterContext)
Enter a parse tree produced by footer().
The default implementation does nothing.
Declaration
public virtual void EnterFooter(STLParser.FooterContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| STLParser.FooterContext | context | The parse tree. |
EnterHeader(STLParser.HeaderContext)
Enter a parse tree produced by header().
The default implementation does nothing.
Declaration
public virtual void EnterHeader(STLParser.HeaderContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| STLParser.HeaderContext | context | The parse tree. |
EnterTriangle(STLParser.TriangleContext)
Enter a parse tree produced by triangle().
The default implementation does nothing.
Declaration
public virtual void EnterTriangle(STLParser.TriangleContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| STLParser.TriangleContext | context | The parse tree. |
EnterTriple(STLParser.TripleContext)
Enter a parse tree produced by triple().
The default implementation does nothing.
Declaration
public virtual void EnterTriple(STLParser.TripleContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| STLParser.TripleContext | context | The parse tree. |
EnterVertex(STLParser.VertexContext)
Enter a parse tree produced by vertex().
The default implementation does nothing.
Declaration
public virtual void EnterVertex(STLParser.VertexContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| STLParser.VertexContext | context | The parse tree. |
ExitEveryRule(Antlr4.Runtime.ParserRuleContext)
Declaration
public virtual void ExitEveryRule(Antlr4.Runtime.ParserRuleContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| Antlr4.Runtime.ParserRuleContext | context |
Remarks
The default implementation does nothing.
ExitFile_(STLParser.File_Context)
Exit a parse tree produced by file_().
The default implementation does nothing.
Declaration
public virtual void ExitFile_(STLParser.File_Context context)
Parameters
| Type | Name | Description |
|---|---|---|
| STLParser.File_Context | context | The parse tree. |
ExitFooter(STLParser.FooterContext)
Exit a parse tree produced by footer().
The default implementation does nothing.
Declaration
public virtual void ExitFooter(STLParser.FooterContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| STLParser.FooterContext | context | The parse tree. |
ExitHeader(STLParser.HeaderContext)
Exit a parse tree produced by header().
The default implementation does nothing.
Declaration
public virtual void ExitHeader(STLParser.HeaderContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| STLParser.HeaderContext | context | The parse tree. |
ExitTriangle(STLParser.TriangleContext)
Exit a parse tree produced by triangle().
The default implementation does nothing.
Declaration
public virtual void ExitTriangle(STLParser.TriangleContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| STLParser.TriangleContext | context | The parse tree. |
ExitTriple(STLParser.TripleContext)
Exit a parse tree produced by triple().
The default implementation does nothing.
Declaration
public virtual void ExitTriple(STLParser.TripleContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| STLParser.TripleContext | context | The parse tree. |
ExitVertex(STLParser.VertexContext)
Exit a parse tree produced by vertex().
The default implementation does nothing.
Declaration
public virtual void ExitVertex(STLParser.VertexContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| STLParser.VertexContext | context | The parse tree. |
VisitErrorNode(Antlr4.Runtime.Tree.IErrorNode)
Declaration
public virtual void VisitErrorNode(Antlr4.Runtime.Tree.IErrorNode node)
Parameters
| Type | Name | Description |
|---|---|---|
| Antlr4.Runtime.Tree.IErrorNode | node |
Remarks
The default implementation does nothing.
VisitTerminal(Antlr4.Runtime.Tree.ITerminalNode)
Declaration
public virtual void VisitTerminal(Antlr4.Runtime.Tree.ITerminalNode node)
Parameters
| Type | Name | Description |
|---|---|---|
| Antlr4.Runtime.Tree.ITerminalNode | node |
Remarks
The default implementation does nothing.