Class OpenDSLControlVisitor

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

public class OpenDSLControlVisitor
extends OpenDSLVarVisitor
  • Constructor Details

  • Method Details

    • visitForstmt

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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