Class STLBaseVisitor<Result>
This class provides an empty implementation of ISTLVisitor<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.Stl
Assembly: Stl.dll
Syntax
public class STLBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, ISTLVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitFile_(STLParser.File_Context)
Visit a parse tree produced by file_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFile_(STLParser.File_Context context)
Parameters
Type | Name | Description |
---|---|---|
STLParser.File_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFooter(STLParser.FooterContext)
Visit a parse tree produced by footer().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFooter(STLParser.FooterContext context)
Parameters
Type | Name | Description |
---|---|---|
STLParser.FooterContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitHeader(STLParser.HeaderContext)
Visit a parse tree produced by header().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitHeader(STLParser.HeaderContext context)
Parameters
Type | Name | Description |
---|---|---|
STLParser.HeaderContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTriangle(STLParser.TriangleContext)
Visit a parse tree produced by triangle().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTriangle(STLParser.TriangleContext context)
Parameters
Type | Name | Description |
---|---|---|
STLParser.TriangleContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitTriple(STLParser.TripleContext)
Visit a parse tree produced by triple().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitTriple(STLParser.TripleContext context)
Parameters
Type | Name | Description |
---|---|---|
STLParser.TripleContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitVertex(STLParser.VertexContext)
Visit a parse tree produced by vertex().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitVertex(STLParser.VertexContext context)
Parameters
Type | Name | Description |
---|---|---|
STLParser.VertexContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |