Class FlatBuffersBaseVisitor<Result>
This class provides an empty implementation of IFlatBuffersVisitor<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.Flatbuffers
Assembly: Flatbuffers.dll
Syntax
public class FlatBuffersBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, IFlatBuffersVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitAttribute_decl(FlatBuffersParser.Attribute_declContext)
Visit a parse tree produced by attribute_decl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAttribute_decl(FlatBuffersParser.Attribute_declContext context)
Parameters
Type | Name | Description |
---|---|---|
FlatBuffersParser.Attribute_declContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCommasep_enumval_decl(FlatBuffersParser.Commasep_enumval_declContext)
Visit a parse tree produced by commasep_enumval_decl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCommasep_enumval_decl(FlatBuffersParser.Commasep_enumval_declContext context)
Parameters
Type | Name | Description |
---|---|---|
FlatBuffersParser.Commasep_enumval_declContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCommasep_ident_with_opt_single_value(FlatBuffersParser.Commasep_ident_with_opt_single_valueContext)
Visit a parse tree produced by commasep_ident_with_opt_single_value().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCommasep_ident_with_opt_single_value(FlatBuffersParser.Commasep_ident_with_opt_single_valueContext context)
Parameters
Type | Name | Description |
---|---|---|
FlatBuffersParser.Commasep_ident_with_opt_single_valueContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCommasep_ident_with_value(FlatBuffersParser.Commasep_ident_with_valueContext)
Visit a parse tree produced by commasep_ident_with_value().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCommasep_ident_with_value(FlatBuffersParser.Commasep_ident_with_valueContext context)
Parameters
Type | Name | Description |
---|---|---|
FlatBuffersParser.Commasep_ident_with_valueContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCommasep_unionval_with_opt_alias(FlatBuffersParser.Commasep_unionval_with_opt_aliasContext)
Visit a parse tree produced by commasep_unionval_with_opt_alias().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCommasep_unionval_with_opt_alias(FlatBuffersParser.Commasep_unionval_with_opt_aliasContext context)
Parameters
Type | Name | Description |
---|---|---|
FlatBuffersParser.Commasep_unionval_with_opt_aliasContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCommasep_value(FlatBuffersParser.Commasep_valueContext)
Visit a parse tree produced by commasep_value().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCommasep_value(FlatBuffersParser.Commasep_valueContext context)
Parameters
Type | Name | Description |
---|---|---|
FlatBuffersParser.Commasep_valueContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitEnum_decl(FlatBuffersParser.Enum_declContext)
Visit a parse tree produced by enum_decl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitEnum_decl(FlatBuffersParser.Enum_declContext context)
Parameters
Type | Name | Description |
---|---|---|
FlatBuffersParser.Enum_declContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitEnumval_decl(FlatBuffersParser.Enumval_declContext)
Visit a parse tree produced by enumval_decl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitEnumval_decl(FlatBuffersParser.Enumval_declContext context)
Parameters
Type | Name | Description |
---|---|---|
FlatBuffersParser.Enumval_declContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitField_decl(FlatBuffersParser.Field_declContext)
Visit a parse tree produced by field_decl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitField_decl(FlatBuffersParser.Field_declContext context)
Parameters
Type | Name | Description |
---|---|---|
FlatBuffersParser.Field_declContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFile_extension_decl(FlatBuffersParser.File_extension_declContext)
Visit a parse tree produced by file_extension_decl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFile_extension_decl(FlatBuffersParser.File_extension_declContext context)
Parameters
Type | Name | Description |
---|---|---|
FlatBuffersParser.File_extension_declContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFile_identifier_decl(FlatBuffersParser.File_identifier_declContext)
Visit a parse tree produced by file_identifier_decl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFile_identifier_decl(FlatBuffersParser.File_identifier_declContext context)
Parameters
Type | Name | Description |
---|---|---|
FlatBuffersParser.File_identifier_declContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitIdent_with_opt_single_value(FlatBuffersParser.Ident_with_opt_single_valueContext)
Visit a parse tree produced by ident_with_opt_single_value().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIdent_with_opt_single_value(FlatBuffersParser.Ident_with_opt_single_valueContext context)
Parameters
Type | Name | Description |
---|---|---|
FlatBuffersParser.Ident_with_opt_single_valueContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitIdent_with_value(FlatBuffersParser.Ident_with_valueContext)
Visit a parse tree produced by ident_with_value().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIdent_with_value(FlatBuffersParser.Ident_with_valueContext context)
Parameters
Type | Name | Description |
---|---|---|
FlatBuffersParser.Ident_with_valueContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitIdentifier(FlatBuffersParser.IdentifierContext)
Visit a parse tree produced by identifier().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIdentifier(FlatBuffersParser.IdentifierContext context)
Parameters
Type | Name | Description |
---|---|---|
FlatBuffersParser.IdentifierContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitInclude_(FlatBuffersParser.Include_Context)
Visit a parse tree produced by include_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitInclude_(FlatBuffersParser.Include_Context context)
Parameters
Type | Name | Description |
---|---|---|
FlatBuffersParser.Include_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitInteger_const(FlatBuffersParser.Integer_constContext)
Visit a parse tree produced by integer_const().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitInteger_const(FlatBuffersParser.Integer_constContext context)
Parameters
Type | Name | Description |
---|---|---|
FlatBuffersParser.Integer_constContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitKeywords(FlatBuffersParser.KeywordsContext)
Visit a parse tree produced by keywords().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitKeywords(FlatBuffersParser.KeywordsContext context)
Parameters
Type | Name | Description |
---|---|---|
FlatBuffersParser.KeywordsContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMetadata(FlatBuffersParser.MetadataContext)
Visit a parse tree produced by metadata().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMetadata(FlatBuffersParser.MetadataContext context)
Parameters
Type | Name | Description |
---|---|---|
FlatBuffersParser.MetadataContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNamespace_decl(FlatBuffersParser.Namespace_declContext)
Visit a parse tree produced by namespace_decl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNamespace_decl(FlatBuffersParser.Namespace_declContext context)
Parameters
Type | Name | Description |
---|---|---|
FlatBuffersParser.Namespace_declContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNs_ident(FlatBuffersParser.Ns_identContext)
Visit a parse tree produced by ns_ident().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNs_ident(FlatBuffersParser.Ns_identContext context)
Parameters
Type | Name | Description |
---|---|---|
FlatBuffersParser.Ns_identContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitObject_(FlatBuffersParser.Object_Context)
Visit a parse tree produced by object_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitObject_(FlatBuffersParser.Object_Context context)
Parameters
Type | Name | Description |
---|---|---|
FlatBuffersParser.Object_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRoot_decl(FlatBuffersParser.Root_declContext)
Visit a parse tree produced by root_decl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitRoot_decl(FlatBuffersParser.Root_declContext context)
Parameters
Type | Name | Description |
---|---|---|
FlatBuffersParser.Root_declContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRpc_decl(FlatBuffersParser.Rpc_declContext)
Visit a parse tree produced by rpc_decl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitRpc_decl(FlatBuffersParser.Rpc_declContext context)
Parameters
Type | Name | Description |
---|---|---|
FlatBuffersParser.Rpc_declContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRpc_method(FlatBuffersParser.Rpc_methodContext)
Visit a parse tree produced by rpc_method().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitRpc_method(FlatBuffersParser.Rpc_methodContext context)
Parameters
Type | Name | Description |
---|---|---|
FlatBuffersParser.Rpc_methodContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitScalar(FlatBuffersParser.ScalarContext)
Visit a parse tree produced by scalar().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitScalar(FlatBuffersParser.ScalarContext context)
Parameters
Type | Name | Description |
---|---|---|
FlatBuffersParser.ScalarContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSchema(FlatBuffersParser.SchemaContext)
Visit a parse tree produced by schema().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSchema(FlatBuffersParser.SchemaContext context)
Parameters
Type | Name | Description |
---|---|---|
FlatBuffersParser.SchemaContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSingle_value(FlatBuffersParser.Single_valueContext)
Visit a parse tree produced by single_value().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSingle_value(FlatBuffersParser.Single_valueContext context)
Parameters
Type | Name | Description |
---|---|---|
FlatBuffersParser.Single_valueContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitType_(FlatBuffersParser.Type_Context)
Visit a parse tree produced by type_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitType_(FlatBuffersParser.Type_Context context)
Parameters
Type | Name | Description |
---|---|---|
FlatBuffersParser.Type_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitType_decl(FlatBuffersParser.Type_declContext)
Visit a parse tree produced by type_decl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitType_decl(FlatBuffersParser.Type_declContext context)
Parameters
Type | Name | Description |
---|---|---|
FlatBuffersParser.Type_declContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitUnion_decl(FlatBuffersParser.Union_declContext)
Visit a parse tree produced by union_decl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitUnion_decl(FlatBuffersParser.Union_declContext context)
Parameters
Type | Name | Description |
---|---|---|
FlatBuffersParser.Union_declContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitUnionval_with_opt_alias(FlatBuffersParser.Unionval_with_opt_aliasContext)
Visit a parse tree produced by unionval_with_opt_alias().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitUnionval_with_opt_alias(FlatBuffersParser.Unionval_with_opt_aliasContext context)
Parameters
Type | Name | Description |
---|---|---|
FlatBuffersParser.Unionval_with_opt_aliasContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitValue(FlatBuffersParser.ValueContext)
Visit a parse tree produced by value().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitValue(FlatBuffersParser.ValueContext context)
Parameters
Type | Name | Description |
---|---|---|
FlatBuffersParser.ValueContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |