Class KGCLBaseVisitor<T>

java.lang.Object
org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
org.incenp.obofoundry.kgcl.parser.KGCLBaseVisitor<T>
Type Parameters:
T - The return type of the visit operation. Use Void for operations with no return type.
All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<T>, KGCLVisitor<T>
Direct Known Subclasses:
ParseTree2ChangeVisitor

public class KGCLBaseVisitor<T> extends org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T> implements KGCLVisitor<T>
This class provides an empty implementation of KGCLVisitor, which can be extended to create a visitor which only needs to handle a subset of the available methods.
  • Constructor Details

    • KGCLBaseVisitor

      public KGCLBaseVisitor()
  • Method Details

    • visitChangeset

      public T visitChangeset(KGCLParser.ChangesetContext ctx)
      Visit a parse tree produced by KGCLParser.changeset().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitChangeset in interface KGCLVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitChange

      public T visitChange(KGCLParser.ChangeContext ctx)
      Visit a parse tree produced by KGCLParser.change().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitChange in interface KGCLVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitRename

      public T visitRename(KGCLParser.RenameContext ctx)
      Visit a parse tree produced by KGCLParser.rename().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitRename in interface KGCLVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitObsoleteNoReplacement

      public T visitObsoleteNoReplacement(KGCLParser.ObsoleteNoReplacementContext ctx)
      Visit a parse tree produced by the ObsoleteNoReplacement labeled alternative in KGCLParser.obsolete().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitObsoleteNoReplacement in interface KGCLVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitObsoleteWithReplacement

      public T visitObsoleteWithReplacement(KGCLParser.ObsoleteWithReplacementContext ctx)
      Visit a parse tree produced by the ObsoleteWithReplacement labeled alternative in KGCLParser.obsolete().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitObsoleteWithReplacement in interface KGCLVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitObsoleteWithAlternative

      public T visitObsoleteWithAlternative(KGCLParser.ObsoleteWithAlternativeContext ctx)
      Visit a parse tree produced by the ObsoleteWithAlternative labeled alternative in KGCLParser.obsolete().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitObsoleteWithAlternative in interface KGCLVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitUnobsolete

      public T visitUnobsolete(KGCLParser.UnobsoleteContext ctx)
      Visit a parse tree produced by KGCLParser.unobsolete().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitUnobsolete in interface KGCLVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitDelete

      public T visitDelete(KGCLParser.DeleteContext ctx)
      Visit a parse tree produced by KGCLParser.delete().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitDelete in interface KGCLVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitNewSynonym

      public T visitNewSynonym(KGCLParser.NewSynonymContext ctx)
      Visit a parse tree produced by KGCLParser.newSynonym().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitNewSynonym in interface KGCLVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitRemoveSynonym

      public T visitRemoveSynonym(KGCLParser.RemoveSynonymContext ctx)
      Visit a parse tree produced by KGCLParser.removeSynonym().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitRemoveSynonym in interface KGCLVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitChangeSynonym

      public T visitChangeSynonym(KGCLParser.ChangeSynonymContext ctx)
      Visit a parse tree produced by KGCLParser.changeSynonym().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitChangeSynonym in interface KGCLVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitNewDefinition

      public T visitNewDefinition(KGCLParser.NewDefinitionContext ctx)
      Visit a parse tree produced by KGCLParser.newDefinition().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitNewDefinition in interface KGCLVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitRemoveDefinition

      public T visitRemoveDefinition(KGCLParser.RemoveDefinitionContext ctx)
      Visit a parse tree produced by KGCLParser.removeDefinition().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitRemoveDefinition in interface KGCLVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitChangeDefinition

      public T visitChangeDefinition(KGCLParser.ChangeDefinitionContext ctx)
      Visit a parse tree produced by KGCLParser.changeDefinition().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitChangeDefinition in interface KGCLVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitNewNode

      public T visitNewNode(KGCLParser.NewNodeContext ctx)
      Visit a parse tree produced by KGCLParser.newNode().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitNewNode in interface KGCLVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitNewEdge

      public T visitNewEdge(KGCLParser.NewEdgeContext ctx)
      Visit a parse tree produced by KGCLParser.newEdge().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitNewEdge in interface KGCLVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitDeleteEdge

      public T visitDeleteEdge(KGCLParser.DeleteEdgeContext ctx)
      Visit a parse tree produced by KGCLParser.deleteEdge().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitDeleteEdge in interface KGCLVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitChangePredicate

      public T visitChangePredicate(KGCLParser.ChangePredicateContext ctx)
      Visit a parse tree produced by KGCLParser.changePredicate().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitChangePredicate in interface KGCLVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitChangeAnnotation

      public T visitChangeAnnotation(KGCLParser.ChangeAnnotationContext ctx)
      Visit a parse tree produced by KGCLParser.changeAnnotation().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitChangeAnnotation in interface KGCLVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitMove

      public T visitMove(KGCLParser.MoveContext ctx)
      Visit a parse tree produced by KGCLParser.move().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitMove in interface KGCLVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitAddSubset

      public T visitAddSubset(KGCLParser.AddSubsetContext ctx)
      Visit a parse tree produced by KGCLParser.addSubset().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitAddSubset in interface KGCLVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitRemoveSubset

      public T visitRemoveSubset(KGCLParser.RemoveSubsetContext ctx)
      Visit a parse tree produced by KGCLParser.removeSubset().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitRemoveSubset in interface KGCLVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitIdlist

      public T visitIdlist(KGCLParser.IdlistContext ctx)
      Visit a parse tree produced by KGCLParser.idlist().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitIdlist in interface KGCLVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitIdAsIRI

      public T visitIdAsIRI(KGCLParser.IdAsIRIContext ctx)
      Visit a parse tree produced by the IdAsIRI labeled alternative in KGCLParser.id().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitIdAsIRI in interface KGCLVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitIdAsCURIE

      public T visitIdAsCURIE(KGCLParser.IdAsCURIEContext ctx)
      Visit a parse tree produced by the IdAsCURIE labeled alternative in KGCLParser.id().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitIdAsCURIE in interface KGCLVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitIdAsLabel

      public T visitIdAsLabel(KGCLParser.IdAsLabelContext ctx)
      Visit a parse tree produced by the IdAsLabel labeled alternative in KGCLParser.id().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitIdAsLabel in interface KGCLVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitNodeType

      public T visitNodeType(KGCLParser.NodeTypeContext ctx)
      Visit a parse tree produced by KGCLParser.nodeType().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitNodeType in interface KGCLVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitText

      public T visitText(KGCLParser.TextContext ctx)
      Visit a parse tree produced by KGCLParser.text().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitText in interface KGCLVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitString

      public T visitString(KGCLParser.StringContext ctx)
      Visit a parse tree produced by KGCLParser.string().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitString in interface KGCLVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitQualifier

      public T visitQualifier(KGCLParser.QualifierContext ctx)
      Visit a parse tree produced by KGCLParser.qualifier().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitQualifier in interface KGCLVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitTypetag

      public T visitTypetag(KGCLParser.TypetagContext ctx)
      Visit a parse tree produced by KGCLParser.typetag().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitTypetag in interface KGCLVisitor<T>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result