Class OpenDSLVarVisitor

java.lang.Object
org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
com.walkfares.odsl.OpenDSLVarVisitor
All Implemented Interfaces:
com.walkfares.odsl.grammar.OpenDSLVisitor<Var>, org.antlr.v4.runtime.tree.ParseTreeVisitor<Var>
Direct Known Subclasses:
OpenDSLControlVisitor

public class OpenDSLVarVisitor
extends com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
  • Field Summary

    Fields 
    Modifier and Type Field Description
    FunctionRegistry functionRegistry  
    Map<String,​List<UDF>> udf  
  • Constructor Summary

    Constructors 
    Constructor Description
    OpenDSLVarVisitor​(OpenDSLContext context)  
  • Method Summary

    Modifier and Type Method Description
    void addLogMessage​(String lm)  
    Var callFunction​(String name, org.antlr.v4.runtime.ParserRuleContext source, List<Var> params)
    function: FUNCTION name=ID OPEN_PAREN (id (COMMA id)*)? CLOSE_PAREN functionbody END;
    void changeModule​(String filename)  
    OpenDSLContext getContext()  
    String getCurrentLine()  
    Var getProperty​(org.antlr.v4.runtime.ParserRuleContext ctx, Var parent, String propname)  
    Var getPropertyParent​(com.walkfares.odsl.grammar.OpenDSLParser.PropertyContext ctx)  
    UDF getUDF​(String name, int params)  
    UDF getUDF​(String name, List<Var> params)  
    VarHelper getVarHelper()  
    Var matches​(ListProvider list, OpenDSLVarVisitor visitor, com.walkfares.odsl.grammar.OpenDSLParser.ArrayconditionContext condition)  
    OpenDSLVarVisitor newInstance()  
    Var runWorkflow​(VarWorkflow workflow, VarDynamicObject input, VarDynamicObject output)  
    void save​(Var v)  
    OpenDSLVarVisitor setEOFEndsExecution​(boolean EOFEndsExecution)  
    Var visitActivevar​(com.walkfares.odsl.grammar.OpenDSLParser.ActivevarContext ctx)
    Visit a parse tree produced by OpenDSLParser.activevar().
    Var visitAddingExpression​(com.walkfares.odsl.grammar.OpenDSLParser.AddingExpressionContext ctx)
    Visit a parse tree produced by OpenDSLParser.addingExpression().
    Var visitArray​(com.walkfares.odsl.grammar.OpenDSLParser.ArrayContext ctx)
    Visit a parse tree produced by OpenDSLParser.array().
    Var visitArrayexpression​(com.walkfares.odsl.grammar.OpenDSLParser.ArrayexpressionContext ctx)
    Visit a parse tree produced by OpenDSLParser.arrayexpression().
    Var visitArrayindex​(ListProvider array, com.walkfares.odsl.grammar.OpenDSLParser.ArrayindexContext ctx)  
    Var visitArrayinitialiser​(com.walkfares.odsl.grammar.OpenDSLParser.ArrayinitialiserContext ctx)
    Visit a parse tree produced by OpenDSLParser.arrayinitialiser().
    Var visitAssign​(com.walkfares.odsl.grammar.OpenDSLParser.AssignContext ctx)
    Visit a parse tree produced by OpenDSLParser.assign().
    Var visitAssignee​(com.walkfares.odsl.grammar.OpenDSLParser.AssigneeContext ctx)
    Visit a parse tree produced by OpenDSLParser.assignee().
    Var visitAvservice​(com.walkfares.odsl.grammar.OpenDSLParser.AvserviceContext ctx)
    Visit a parse tree produced by OpenDSLParser.avservice().
    Var visitConditionalExpression​(com.walkfares.odsl.grammar.OpenDSLParser.ConditionalExpressionContext ctx)
    Visit a parse tree produced by OpenDSLParser.conditionalExpression().
    Var visitDateexpression​(com.walkfares.odsl.grammar.OpenDSLParser.DateexpressionContext ctx)
    DATEEXPR: INT [smhDWMY] (INT [smhDWMY])*;
    Var visitDeclaredType​(com.walkfares.odsl.grammar.OpenDSLParser.DeclaredTypeContext ctx)
    Visit a parse tree produced by OpenDSLParser.declaredType().
    Var visitErrors​(com.walkfares.odsl.grammar.OpenDSLParser.ErrorsContext ctx)
    Visit a parse tree produced by OpenDSLParser.errors().
    Var visitExponentExpression​(com.walkfares.odsl.grammar.OpenDSLParser.ExponentExpressionContext ctx)
    Visit a parse tree produced by OpenDSLParser.exponentExpression().
    Var visitExpression​(com.walkfares.odsl.grammar.OpenDSLParser.ExpressionContext ctx)
    Visit a parse tree produced by OpenDSLParser.expression().
    Var visitExtractCheck​(com.walkfares.odsl.grammar.OpenDSLParser.ExtractCheckContext ctx)
    Visit a parse tree produced by OpenDSLParser.extractCheck().
    Var visitExtractClick​(com.walkfares.odsl.grammar.OpenDSLParser.ExtractClickContext ctx)
    Visit a parse tree produced by OpenDSLParser.extractClick().
    Var visitExtractFill​(com.walkfares.odsl.grammar.OpenDSLParser.ExtractFillContext ctx)
    Visit a parse tree produced by OpenDSLParser.extractFill().
    Var visitExtractParam​(com.walkfares.odsl.grammar.OpenDSLParser.ExtractParamContext ctx)
    Visit a parse tree produced by OpenDSLParser.extractParam().
    Var visitExtractSelect​(com.walkfares.odsl.grammar.OpenDSLParser.ExtractSelectContext ctx)
    Visit a parse tree produced by OpenDSLParser.extractSelect().
    Var visitFunctioncall​(com.walkfares.odsl.grammar.OpenDSLParser.FunctioncallContext ctx)
    Visit a parse tree produced by OpenDSLParser.functioncall().
    Var visitId​(com.walkfares.odsl.grammar.OpenDSLParser.IdContext ctx)
    Visit a parse tree produced by OpenDSLParser.id().
    Var visitInteger​(com.walkfares.odsl.grammar.OpenDSLParser.IntegerContext ctx)
    Visit a parse tree produced by OpenDSLParser.integer().
    Var visitMethod​(com.walkfares.odsl.grammar.OpenDSLParser.MethodContext ctx)
    Visit a parse tree produced by OpenDSLParser.method().
    Var visitMethod​(com.walkfares.odsl.grammar.OpenDSLParser.MethodContext ctx, boolean visitExtension)  
    Var visitMethodbody​(com.walkfares.odsl.grammar.OpenDSLParser.MethodbodyContext ctx)
    Visit a parse tree produced by OpenDSLParser.methodbody().
    Var visitMultiplyExpression​(com.walkfares.odsl.grammar.OpenDSLParser.MultiplyExpressionContext ctx)
    Visit a parse tree produced by OpenDSLParser.multiplyExpression().
    Var visitNumber​(com.walkfares.odsl.grammar.OpenDSLParser.NumberContext ctx)
    Visit a parse tree produced by OpenDSLParser.number().
    void visitPrint​(Var v)  
    Var visitProperty​(com.walkfares.odsl.grammar.OpenDSLParser.PropertyContext ctx)
    Visit a parse tree produced by OpenDSLParser.property().
    Var visitRelationalExpression​(com.walkfares.odsl.grammar.OpenDSLParser.RelationalExpressionContext ctx)
    Visit a parse tree produced by OpenDSLParser.relationalExpression().
    Var visitRowexpression​(com.walkfares.odsl.grammar.OpenDSLParser.RowexpressionContext ctx)
    Visit a parse tree produced by OpenDSLParser.rowexpression().
    Var visitScalarvar​(com.walkfares.odsl.grammar.OpenDSLParser.ScalarvarContext ctx)
    Visit a parse tree produced by OpenDSLParser.scalarvar().
    Var visitSingularExpression​(com.walkfares.odsl.grammar.OpenDSLParser.SingularExpressionContext ctx)
    Visit a parse tree produced by OpenDSLParser.singularExpression().
    Var visitStatement​(com.walkfares.odsl.grammar.OpenDSLParser.StatementContext ctx)
    Visit a parse tree produced by OpenDSLParser.statement().
    Var visitString​(com.walkfares.odsl.grammar.OpenDSLParser.StringContext ctx)
    Visit a parse tree produced by OpenDSLParser.string().
    Var visitTagstmt​(com.walkfares.odsl.grammar.OpenDSLParser.TagstmtContext ctx)
    Visit a parse tree produced by OpenDSLParser.tagstmt().
    Var visitTf​(com.walkfares.odsl.grammar.OpenDSLParser.TfContext ctx)
    Visit a parse tree produced by OpenDSLParser.tf().
    Var visitUnevaluatedExpression​(com.walkfares.odsl.grammar.OpenDSLParser.UnevaluatedExpressionContext ctx)
    Visit a parse tree produced by OpenDSLParser.unevaluatedExpression().
    Var visitVariable​(com.walkfares.odsl.grammar.OpenDSLParser.VariableContext ctx)
    Visit a parse tree produced by OpenDSLParser.variable().
    Var visitVersion​(com.walkfares.odsl.grammar.OpenDSLParser.VersionContext ctx)
    Visit a parse tree produced by OpenDSLParser.version().

    Methods inherited from class com.walkfares.odsl.grammar.OpenDSLBaseVisitor

    visitAbort, visitAction, visitActionExit, visitActionInput, visitActionOutput, visitAddField, visitAggregate, visitAggregationOptions, visitAggregationPipeline, visitArraycondition, visitArrayindex, visitBucketOutput, visitComment, visitCondition, visitControl, visitCreateIndex, visitDate, visitDelete, visitDeleteBulk, visitDynamicname, visitErrorText, visitExpressionOrCondition, visitExtract, visitExtractor, visitFacetItem, visitFail, visitFind, visitFoldingrange, visitForeach, visitForstmt, visitFunction, visitFunctionbody, visitFunctionparam, visitGranularity, visitGroupAssign, visitIfstmt, visitImportscript, visitIndexcollation, visitIndexcollationitem, visitIndexfield, visitIndexoptions, visitIndexpartial, visitIndexttl, visitJsonElement, visitJsonObject, visitLink, visitLinkType, visitLog, visitLogout, visitMlVarname, visitNl, visitObjectDeclaration, visitObjectDefinition, visitPhase, visitPipelineAddFields, visitPipelineBucket, visitPipelineBucketauto, visitPipelineCount, visitPipelineDocuments, visitPipelineFacet, visitPipelineGeoNear, visitPipelineGraphLookup, visitPipelineGroup, visitPipelineItem, visitPipelineLimit, visitPipelineLookup, visitPipelineMatch, visitPipelineMerge, visitPipelineOperator, visitPipelineOut, visitPipelineProject, visitPipelineRedact, visitPipelineReplaceRoot, visitPipelineReplaceWith, visitPipelineSample, visitPipelineSkip, visitPipelineSort, visitPipelineSortByCount, visitPipelineUnwind, visitPprojectField, visitPrint, visitProject, visitProjectField, visitPublicvar, visitPublish, visitQualityCheck, visitQualityCheckProfile, visitQualityCheckProfileParams, visitQualityCheckWithChecks, visitRename, visitReschedule, visitReturnstmt, visitRun, visitSave, visitSend, visitSendmail, visitSet, visitSingleLineIfExpression, visitSingleLineIfStatement, visitSortItem, visitStart, visitThrowerror, visitTransform, visitTransformClear, visitTransformCreate, visitTransformer, visitTransformFor, visitTransformIf, visitTransformIgnore, visitTransformOptions, visitTransformUnique, visitTrigger, visitTypeBucket, visitTypeConstraint, visitTypeDeclaration, visitTypeDefinition, visitTypeEditor, visitTypeExpression, visitTypeMethod, visitTypeMethodParams, visitTypeProperty, visitTypeSmartData, visitUpdateBulk, visitUpdateOperator, visitUpdateOperatorParam, visitUse, visitVarname, visitWaitcmd, visitWhilestmt, visitWorkflow, visitWorkflowAction, visitWorkflowBody, visitWorkflowEvent, visitWorkflowGateway, visitWorkflowStart, visitWorkflowTransition, visitWorkflowWorkflow

    Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor

    visit, visitChildren, visitErrorNode, visitTerminal

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.antlr.v4.runtime.tree.ParseTreeVisitor

    visit, visitChildren, visitErrorNode, visitTerminal
  • Field Details

  • Constructor Details

  • Method Details

    • getVarHelper

      public VarHelper getVarHelper()
    • getContext

      public OpenDSLContext getContext()
    • getCurrentLine

      public String getCurrentLine()
    • newInstance

      public OpenDSLVarVisitor newInstance()
    • changeModule

      public void changeModule​(String filename)
    • setEOFEndsExecution

      public OpenDSLVarVisitor setEOFEndsExecution​(boolean EOFEndsExecution)
    • visitStatement

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public Var visitArrayindex​(ListProvider array, com.walkfares.odsl.grammar.OpenDSLParser.ArrayindexContext ctx)
    • matches

      public Var matches​(ListProvider list, OpenDSLVarVisitor visitor, com.walkfares.odsl.grammar.OpenDSLParser.ArrayconditionContext condition)
    • visitArray

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public Var visitDateexpression​(com.walkfares.odsl.grammar.OpenDSLParser.DateexpressionContext ctx)
      DATEEXPR: INT [smhDWMY] (INT [smhDWMY])*;
      Specified by:
      visitDateexpression in interface com.walkfares.odsl.grammar.OpenDSLVisitor<Var>
      Overrides:
      visitDateexpression in class com.walkfares.odsl.grammar.OpenDSLBaseVisitor<Var>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitScalarvar

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public UDF getUDF​(String name, List<Var> params)
    • getUDF

      public UDF getUDF​(String name, int params)
    • callFunction

      public Var callFunction​(String name, org.antlr.v4.runtime.ParserRuleContext source, List<Var> params)
      function: FUNCTION name=ID OPEN_PAREN (id (COMMA id)*)? CLOSE_PAREN functionbody END;
    • 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 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, boolean visitExtension)
    • runWorkflow

      public Var runWorkflow​(VarWorkflow workflow, VarDynamicObject input, VarDynamicObject output)
    • visitProperty

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

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

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

      public Var getProperty​(org.antlr.v4.runtime.ParserRuleContext ctx, Var parent, String propname)
    • getPropertyParent

      public Var getPropertyParent​(com.walkfares.odsl.grammar.OpenDSLParser.PropertyContext ctx)
    • visitVariable

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public void visitPrint​(Var v)
    • addLogMessage

      public void addLogMessage​(String lm)
    • save

      public void save​(Var v)