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.TurtleDoc
Assembly: TurtleDoc.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 |
VisitBlankNode(turtleParser.BlankNodeContext)
Visit a parse tree produced by blankNode().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBlankNode(turtleParser.BlankNodeContext context)
Parameters
Type | Name | Description |
---|---|---|
turtleParser.BlankNodeContext | 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 |
VisitBool_(turtleParser.Bool_Context)
Visit a parse tree produced by bool_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBool_(turtleParser.Bool_Context context)
Parameters
Type | Name | Description |
---|---|---|
turtleParser.Bool_Context | 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 |
VisitNumericLiteral(turtleParser.NumericLiteralContext)
Visit a parse tree produced by numericLiteral().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNumericLiteral(turtleParser.NumericLiteralContext context)
Parameters
Type | Name | Description |
---|---|---|
turtleParser.NumericLiteralContext | 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 |
VisitPredicateObject(turtleParser.PredicateObjectContext)
Visit a parse tree produced by predicateObject().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPredicateObject(turtleParser.PredicateObjectContext context)
Parameters
Type | Name | Description |
---|---|---|
turtleParser.PredicateObjectContext | 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 |
VisitString(turtleParser.StringContext)
Visit a parse tree produced by
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitString(turtleParser.StringContext context)
Parameters
Type | Name | Description |
---|---|---|
turtleParser.StringContext | 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 |