Class plyBaseVisitor<Result>
This class provides an empty implementation of IplyVisitor<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.Ply
Assembly: Ply.dll
Syntax
public class plyBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IplyVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
| Name | Description |
|---|---|
| Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitElement(plyParser.ElementContext)
Visit a parse tree produced by element().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitElement(plyParser.ElementContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| plyParser.ElementContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitEnd_header(plyParser.End_headerContext)
Visit a parse tree produced by end_header().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitEnd_header(plyParser.End_headerContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| plyParser.End_headerContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitFace(plyParser.FaceContext)
Visit a parse tree produced by face().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitFace(plyParser.FaceContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| plyParser.FaceContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitFaces(plyParser.FacesContext)
Visit a parse tree produced by faces().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitFaces(plyParser.FacesContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| plyParser.FacesContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitFormat_(plyParser.Format_Context)
Visit a parse tree produced by format_().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitFormat_(plyParser.Format_Context context)
Parameters
| Type | Name | Description |
|---|---|---|
| plyParser.Format_Context | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitHeader(plyParser.HeaderContext)
Visit a parse tree produced by header().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitHeader(plyParser.HeaderContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| plyParser.HeaderContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitListproperty(plyParser.ListpropertyContext)
Visit a parse tree produced by listproperty().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitListproperty(plyParser.ListpropertyContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| plyParser.ListpropertyContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitNumber(plyParser.NumberContext)
Visit a parse tree produced by number().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitNumber(plyParser.NumberContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| plyParser.NumberContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitPly(plyParser.PlyContext)
Visit a parse tree produced by ply().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitPly(plyParser.PlyContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| plyParser.PlyContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitPlydeclaration(plyParser.PlydeclarationContext)
Visit a parse tree produced by plydeclaration().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitPlydeclaration(plyParser.PlydeclarationContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| plyParser.PlydeclarationContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitProperty_(plyParser.Property_Context)
Visit a parse tree produced by property_().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitProperty_(plyParser.Property_Context context)
Parameters
| Type | Name | Description |
|---|---|---|
| plyParser.Property_Context | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitScalarproperty(plyParser.ScalarpropertyContext)
Visit a parse tree produced by scalarproperty().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitScalarproperty(plyParser.ScalarpropertyContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| plyParser.ScalarpropertyContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitString(plyParser.StringContext)
Visit a parse tree produced by
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitString(plyParser.StringContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| plyParser.StringContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitType_(plyParser.Type_Context)
Visit a parse tree produced by type_().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitType_(plyParser.Type_Context context)
Parameters
| Type | Name | Description |
|---|---|---|
| plyParser.Type_Context | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitVertex(plyParser.VertexContext)
Visit a parse tree produced by vertex().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitVertex(plyParser.VertexContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| plyParser.VertexContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitVertices(plyParser.VerticesContext)
Visit a parse tree produced by vertices().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitVertices(plyParser.VerticesContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| plyParser.VerticesContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |