Class OpenDSLWalker

All Implemented Interfaces:
com.walkfares.odsl.grammar.OpenDSLVisitor<Var>, org.antlr.v4.runtime.tree.ParseTreeVisitor<Var>

public class OpenDSLWalker
extends OpenDSLLink
  • Constructor Details

  • Method Details

    • getUDFs

      public Map<String,​List<UDF>> getUDFs()
    • getFirstComment

      public com.walkfares.odsl.grammar.OpenDSLParser.CommentContext getFirstComment()
    • start

      public Var start()
    • prep

      public com.walkfares.odsl.grammar.OpenDSLParser.StartContext prep()
    • runFoldingRange

      public Var runFoldingRange​(int line)
    • visitImportscript

      public Var visitImportscript​(com.walkfares.odsl.grammar.OpenDSLParser.ImportscriptContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.importscript().

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

      Specified by:
      visitImportscript in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitImportscript in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitPrint

      public Var visitPrint​(com.walkfares.odsl.grammar.OpenDSLParser.PrintContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.print().

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

      Specified by:
      visitPrint in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitPrint in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitLog

      public Var visitLog​(com.walkfares.odsl.grammar.OpenDSLParser.LogContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.log().

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

      Specified by:
      visitLog in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitLog in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitUse

      public Var visitUse​(com.walkfares.odsl.grammar.OpenDSLParser.UseContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.use().

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

      Specified by:
      visitUse in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitUse in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitLogout

      public Var visitLogout​(com.walkfares.odsl.grammar.OpenDSLParser.LogoutContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.logout().

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

      Specified by:
      visitLogout in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitLogout in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitMethod

      public Var visitMethod​(com.walkfares.odsl.grammar.OpenDSLParser.MethodContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.method().

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

      Specified by:
      visitMethod in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitMethod in class OpenDSLVarVisitor
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitReturnstmt

      public Var visitReturnstmt​(com.walkfares.odsl.grammar.OpenDSLParser.ReturnstmtContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.returnstmt().

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

      Specified by:
      visitReturnstmt in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitReturnstmt in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitRename

      public Var visitRename​(com.walkfares.odsl.grammar.OpenDSLParser.RenameContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.rename().

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

      Specified by:
      visitRename in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitRename in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitSave

      public Var visitSave​(com.walkfares.odsl.grammar.OpenDSLParser.SaveContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.save().

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

      Specified by:
      visitSave in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitSave in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitThrowerror

      public Var visitThrowerror​(com.walkfares.odsl.grammar.OpenDSLParser.ThrowerrorContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.throwerror().

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

      Specified by:
      visitThrowerror in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitThrowerror in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitDelete

      public Var visitDelete​(com.walkfares.odsl.grammar.OpenDSLParser.DeleteContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.delete().

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

      Specified by:
      visitDelete in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitDelete in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitSet

      public Var visitSet​(com.walkfares.odsl.grammar.OpenDSLParser.SetContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.set().

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

      Specified by:
      visitSet in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitSet in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitTrigger

      public Var visitTrigger​(com.walkfares.odsl.grammar.OpenDSLParser.TriggerContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.trigger().

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

      Specified by:
      visitTrigger in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitTrigger in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitWaitcmd

      public Var visitWaitcmd​(com.walkfares.odsl.grammar.OpenDSLParser.WaitcmdContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.waitcmd().

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

      Specified by:
      visitWaitcmd in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitWaitcmd in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitQualityCheck

      public Var visitQualityCheck​(com.walkfares.odsl.grammar.OpenDSLParser.QualityCheckContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.qualityCheck().

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

      Specified by:
      visitQualityCheck in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitQualityCheck in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitQualityCheckWithChecks

      public Var visitQualityCheckWithChecks​(com.walkfares.odsl.grammar.OpenDSLParser.QualityCheckWithChecksContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.qualityCheckWithChecks().

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

      Specified by:
      visitQualityCheckWithChecks in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitQualityCheckWithChecks in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitUpdateBulk

      public Var visitUpdateBulk​(com.walkfares.odsl.grammar.OpenDSLParser.UpdateBulkContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.updateBulk().

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

      Specified by:
      visitUpdateBulk in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitUpdateBulk in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitDeleteBulk

      public Var visitDeleteBulk​(com.walkfares.odsl.grammar.OpenDSLParser.DeleteBulkContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.deleteBulk().

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

      Specified by:
      visitDeleteBulk in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitDeleteBulk in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitCreateIndex

      public Var visitCreateIndex​(com.walkfares.odsl.grammar.OpenDSLParser.CreateIndexContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.createIndex().

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

      Specified by:
      visitCreateIndex in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitCreateIndex in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitIndexfield

      public Var visitIndexfield​(com.walkfares.odsl.grammar.OpenDSLParser.IndexfieldContext ctx)
      Description copied from class: com.walkfares.odsl.grammar.OpenDSLBaseVisitor
      Visit a parse tree produced by OpenDSLParser.indexfield().

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

      Specified by:
      visitIndexfield in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitIndexfield in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result