Class TURTLEBaseVisitor<Result>
This class provides an empty implementation of ITURTLEVisitor<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.Turtle
Assembly: Turtle.dll
Syntax
public class TURTLEBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, ITURTLEVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
| Name | Description |
|---|---|
| Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitBase(TURTLEParser.BaseContext)
Visit a parse tree produced by
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitBase(TURTLEParser.BaseContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| TURTLEParser.BaseContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitBlankNodePropertyList(TURTLEParser.BlankNodePropertyListContext)
Visit a parse tree produced by blankNodePropertyList().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitBlankNodePropertyList(TURTLEParser.BlankNodePropertyListContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| TURTLEParser.BlankNodePropertyListContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitCollection(TURTLEParser.CollectionContext)
Visit a parse tree produced by collection().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitCollection(TURTLEParser.CollectionContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| TURTLEParser.CollectionContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitDirective(TURTLEParser.DirectiveContext)
Visit a parse tree produced by directive().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitDirective(TURTLEParser.DirectiveContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| TURTLEParser.DirectiveContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitIri(TURTLEParser.IriContext)
Visit a parse tree produced by iri().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitIri(TURTLEParser.IriContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| TURTLEParser.IriContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitLiteral(TURTLEParser.LiteralContext)
Visit a parse tree produced by literal().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitLiteral(TURTLEParser.LiteralContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| TURTLEParser.LiteralContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitObject_(TURTLEParser.Object_Context)
Visit a parse tree produced by object_().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitObject_(TURTLEParser.Object_Context context)
Parameters
| Type | Name | Description |
|---|---|---|
| TURTLEParser.Object_Context | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitObjectList(TURTLEParser.ObjectListContext)
Visit a parse tree produced by objectList().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitObjectList(TURTLEParser.ObjectListContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| TURTLEParser.ObjectListContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitPredicate(TURTLEParser.PredicateContext)
Visit a parse tree produced by predicate().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitPredicate(TURTLEParser.PredicateContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| TURTLEParser.PredicateContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitPredicateObjectList(TURTLEParser.PredicateObjectListContext)
Visit a parse tree produced by predicateObjectList().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitPredicateObjectList(TURTLEParser.PredicateObjectListContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| TURTLEParser.PredicateObjectListContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitPrefixID(TURTLEParser.PrefixIDContext)
Visit a parse tree produced by prefixID().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitPrefixID(TURTLEParser.PrefixIDContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| TURTLEParser.PrefixIDContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitRdfLiteral(TURTLEParser.RdfLiteralContext)
Visit a parse tree produced by rdfLiteral().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitRdfLiteral(TURTLEParser.RdfLiteralContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| TURTLEParser.RdfLiteralContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitSparqlBase(TURTLEParser.SparqlBaseContext)
Visit a parse tree produced by sparqlBase().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitSparqlBase(TURTLEParser.SparqlBaseContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| TURTLEParser.SparqlBaseContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitSparqlPrefix(TURTLEParser.SparqlPrefixContext)
Visit a parse tree produced by sparqlPrefix().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitSparqlPrefix(TURTLEParser.SparqlPrefixContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| TURTLEParser.SparqlPrefixContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitStatement(TURTLEParser.StatementContext)
Visit a parse tree produced by statement().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitStatement(TURTLEParser.StatementContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| TURTLEParser.StatementContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitSubject(TURTLEParser.SubjectContext)
Visit a parse tree produced by subject().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitSubject(TURTLEParser.SubjectContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| TURTLEParser.SubjectContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitTriples(TURTLEParser.TriplesContext)
Visit a parse tree produced by triples().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitTriples(TURTLEParser.TriplesContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| TURTLEParser.TriplesContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitTurtleDoc(TURTLEParser.TurtleDocContext)
Visit a parse tree produced by turtleDoc().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitTurtleDoc(TURTLEParser.TurtleDocContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| TURTLEParser.TurtleDocContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |
VisitVerb(TURTLEParser.VerbContext)
Visit a parse tree produced by verb().
The default implementation returns the result of calling context.
Declaration
public virtual Result VisitVerb(TURTLEParser.VerbContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| TURTLEParser.VerbContext | context | The parse tree. |
Returns
| Type | Description |
|---|---|
| Result |