AgentBaseVisitor.java

  1. // Generated from org/lightjason/agentspeak/grammar/Agent.g4 by ANTLR 4.7.1
  2. package org.lightjason.agentspeak.grammar;
  3. import org.antlr.v4.runtime.tree.AbstractParseTreeVisitor;

  4. /**
  5.  * This class provides an empty implementation of {@link AgentVisitor},
  6.  * which can be extended to create a visitor which only needs to handle a subset
  7.  * of the available methods.
  8.  *
  9.  * @param <T> The return type of the visit operation. Use {@link Void} for
  10.  * operations with no return type.
  11.  */
  12. public class AgentBaseVisitor<T> extends AbstractParseTreeVisitor<T> implements AgentVisitor<T> {
  13.     /**
  14.      * {@inheritDoc}
  15.      *
  16.      * <p>The default implementation returns the result of calling
  17.      * {@link #visitChildren} on {@code ctx}.</p>
  18.      */
  19.     @Override public T visitAgent(AgentParser.AgentContext ctx) { return visitChildren(ctx); }
  20.     /**
  21.      * {@inheritDoc}
  22.      *
  23.      * <p>The default implementation returns the result of calling
  24.      * {@link #visitChildren} on {@code ctx}.</p>
  25.      */
  26.     @Override public T visitInitial_beliefs(AgentParser.Initial_beliefsContext ctx) { return visitChildren(ctx); }
  27.     /**
  28.      * {@inheritDoc}
  29.      *
  30.      * <p>The default implementation returns the result of calling
  31.      * {@link #visitChildren} on {@code ctx}.</p>
  32.      */
  33.     @Override public T visitInitial_goal(AgentParser.Initial_goalContext ctx) { return visitChildren(ctx); }
  34.     /**
  35.      * {@inheritDoc}
  36.      *
  37.      * <p>The default implementation returns the result of calling
  38.      * {@link #visitChildren} on {@code ctx}.</p>
  39.      */
  40.     @Override public T visitBelief(AgentParser.BeliefContext ctx) { return visitChildren(ctx); }
  41.     /**
  42.      * {@inheritDoc}
  43.      *
  44.      * <p>The default implementation returns the result of calling
  45.      * {@link #visitChildren} on {@code ctx}.</p>
  46.      */
  47.     @Override public T visitPlans(AgentParser.PlansContext ctx) { return visitChildren(ctx); }
  48.     /**
  49.      * {@inheritDoc}
  50.      *
  51.      * <p>The default implementation returns the result of calling
  52.      * {@link #visitChildren} on {@code ctx}.</p>
  53.      */
  54.     @Override public T visitLogicrules(AgentParser.LogicrulesContext ctx) { return visitChildren(ctx); }
  55.     /**
  56.      * {@inheritDoc}
  57.      *
  58.      * <p>The default implementation returns the result of calling
  59.      * {@link #visitChildren} on {@code ctx}.</p>
  60.      */
  61.     @Override public T visitPlan(AgentParser.PlanContext ctx) { return visitChildren(ctx); }
  62.     /**
  63.      * {@inheritDoc}
  64.      *
  65.      * <p>The default implementation returns the result of calling
  66.      * {@link #visitChildren} on {@code ctx}.</p>
  67.      */
  68.     @Override public T visitPlandefinition(AgentParser.PlandefinitionContext ctx) { return visitChildren(ctx); }
  69.     /**
  70.      * {@inheritDoc}
  71.      *
  72.      * <p>The default implementation returns the result of calling
  73.      * {@link #visitChildren} on {@code ctx}.</p>
  74.      */
  75.     @Override public T visitLogicrule(AgentParser.LogicruleContext ctx) { return visitChildren(ctx); }
  76.     /**
  77.      * {@inheritDoc}
  78.      *
  79.      * <p>The default implementation returns the result of calling
  80.      * {@link #visitChildren} on {@code ctx}.</p>
  81.      */
  82.     @Override public T visitLogicalruledefinition(AgentParser.LogicalruledefinitionContext ctx) { return visitChildren(ctx); }
  83.     /**
  84.      * {@inheritDoc}
  85.      *
  86.      * <p>The default implementation returns the result of calling
  87.      * {@link #visitChildren} on {@code ctx}.</p>
  88.      */
  89.     @Override public T visitAnnotations(AgentParser.AnnotationsContext ctx) { return visitChildren(ctx); }
  90.     /**
  91.      * {@inheritDoc}
  92.      *
  93.      * <p>The default implementation returns the result of calling
  94.      * {@link #visitChildren} on {@code ctx}.</p>
  95.      */
  96.     @Override public T visitAnnotation_atom(AgentParser.Annotation_atomContext ctx) { return visitChildren(ctx); }
  97.     /**
  98.      * {@inheritDoc}
  99.      *
  100.      * <p>The default implementation returns the result of calling
  101.      * {@link #visitChildren} on {@code ctx}.</p>
  102.      */
  103.     @Override public T visitAnnotation_literal(AgentParser.Annotation_literalContext ctx) { return visitChildren(ctx); }
  104.     /**
  105.      * {@inheritDoc}
  106.      *
  107.      * <p>The default implementation returns the result of calling
  108.      * {@link #visitChildren} on {@code ctx}.</p>
  109.      */
  110.     @Override public T visitAnnotation_value_literal(AgentParser.Annotation_value_literalContext ctx) { return visitChildren(ctx); }
  111.     /**
  112.      * {@inheritDoc}
  113.      *
  114.      * <p>The default implementation returns the result of calling
  115.      * {@link #visitChildren} on {@code ctx}.</p>
  116.      */
  117.     @Override public T visitPlan_trigger(AgentParser.Plan_triggerContext ctx) { return visitChildren(ctx); }
  118.     /**
  119.      * {@inheritDoc}
  120.      *
  121.      * <p>The default implementation returns the result of calling
  122.      * {@link #visitChildren} on {@code ctx}.</p>
  123.      */
  124.     @Override public T visitPlan_goal_trigger(AgentParser.Plan_goal_triggerContext ctx) { return visitChildren(ctx); }
  125.     /**
  126.      * {@inheritDoc}
  127.      *
  128.      * <p>The default implementation returns the result of calling
  129.      * {@link #visitChildren} on {@code ctx}.</p>
  130.      */
  131.     @Override public T visitPlan_belief_trigger(AgentParser.Plan_belief_triggerContext ctx) { return visitChildren(ctx); }
  132.     /**
  133.      * {@inheritDoc}
  134.      *
  135.      * <p>The default implementation returns the result of calling
  136.      * {@link #visitChildren} on {@code ctx}.</p>
  137.      */
  138.     @Override public T visitBody(AgentParser.BodyContext ctx) { return visitChildren(ctx); }
  139.     /**
  140.      * {@inheritDoc}
  141.      *
  142.      * <p>The default implementation returns the result of calling
  143.      * {@link #visitChildren} on {@code ctx}.</p>
  144.      */
  145.     @Override public T visitBody_formula(AgentParser.Body_formulaContext ctx) { return visitChildren(ctx); }
  146.     /**
  147.      * {@inheritDoc}
  148.      *
  149.      * <p>The default implementation returns the result of calling
  150.      * {@link #visitChildren} on {@code ctx}.</p>
  151.      */
  152.     @Override public T visitRepair_formula(AgentParser.Repair_formulaContext ctx) { return visitChildren(ctx); }
  153.     /**
  154.      * {@inheritDoc}
  155.      *
  156.      * <p>The default implementation returns the result of calling
  157.      * {@link #visitChildren} on {@code ctx}.</p>
  158.      */
  159.     @Override public T visitBelief_action(AgentParser.Belief_actionContext ctx) { return visitChildren(ctx); }
  160.     /**
  161.      * {@inheritDoc}
  162.      *
  163.      * <p>The default implementation returns the result of calling
  164.      * {@link #visitChildren} on {@code ctx}.</p>
  165.      */
  166.     @Override public T visitTest_action(AgentParser.Test_actionContext ctx) { return visitChildren(ctx); }
  167.     /**
  168.      * {@inheritDoc}
  169.      *
  170.      * <p>The default implementation returns the result of calling
  171.      * {@link #visitChildren} on {@code ctx}.</p>
  172.      */
  173.     @Override public T visitAchievement_goal_action(AgentParser.Achievement_goal_actionContext ctx) { return visitChildren(ctx); }
  174.     /**
  175.      * {@inheritDoc}
  176.      *
  177.      * <p>The default implementation returns the result of calling
  178.      * {@link #visitChildren} on {@code ctx}.</p>
  179.      */
  180.     @Override public T visitDeconstruct_expression(AgentParser.Deconstruct_expressionContext ctx) { return visitChildren(ctx); }
  181.     /**
  182.      * {@inheritDoc}
  183.      *
  184.      * <p>The default implementation returns the result of calling
  185.      * {@link #visitChildren} on {@code ctx}.</p>
  186.      */
  187.     @Override public T visitAssignment_expression(AgentParser.Assignment_expressionContext ctx) { return visitChildren(ctx); }
  188.     /**
  189.      * {@inheritDoc}
  190.      *
  191.      * <p>The default implementation returns the result of calling
  192.      * {@link #visitChildren} on {@code ctx}.</p>
  193.      */
  194.     @Override public T visitAssignment_expression_singlevariable(AgentParser.Assignment_expression_singlevariableContext ctx) { return visitChildren(ctx); }
  195.     /**
  196.      * {@inheritDoc}
  197.      *
  198.      * <p>The default implementation returns the result of calling
  199.      * {@link #visitChildren} on {@code ctx}.</p>
  200.      */
  201.     @Override public T visitAssignment_expression_multivariable(AgentParser.Assignment_expression_multivariableContext ctx) { return visitChildren(ctx); }
  202.     /**
  203.      * {@inheritDoc}
  204.      *
  205.      * <p>The default implementation returns the result of calling
  206.      * {@link #visitChildren} on {@code ctx}.</p>
  207.      */
  208.     @Override public T visitUnary_expression(AgentParser.Unary_expressionContext ctx) { return visitChildren(ctx); }
  209.     /**
  210.      * {@inheritDoc}
  211.      *
  212.      * <p>The default implementation returns the result of calling
  213.      * {@link #visitChildren} on {@code ctx}.</p>
  214.      */
  215.     @Override public T visitBinary_expression(AgentParser.Binary_expressionContext ctx) { return visitChildren(ctx); }
  216.     /**
  217.      * {@inheritDoc}
  218.      *
  219.      * <p>The default implementation returns the result of calling
  220.      * {@link #visitChildren} on {@code ctx}.</p>
  221.      */
  222.     @Override public T visitBlock_formula(AgentParser.Block_formulaContext ctx) { return visitChildren(ctx); }
  223.     /**
  224.      * {@inheritDoc}
  225.      *
  226.      * <p>The default implementation returns the result of calling
  227.      * {@link #visitChildren} on {@code ctx}.</p>
  228.      */
  229.     @Override public T visitLambda(AgentParser.LambdaContext ctx) { return visitChildren(ctx); }
  230.     /**
  231.      * {@inheritDoc}
  232.      *
  233.      * <p>The default implementation returns the result of calling
  234.      * {@link #visitChildren} on {@code ctx}.</p>
  235.      */
  236.     @Override public T visitLambda_initialization(AgentParser.Lambda_initializationContext ctx) { return visitChildren(ctx); }
  237.     /**
  238.      * {@inheritDoc}
  239.      *
  240.      * <p>The default implementation returns the result of calling
  241.      * {@link #visitChildren} on {@code ctx}.</p>
  242.      */
  243.     @Override public T visitLambda_return(AgentParser.Lambda_returnContext ctx) { return visitChildren(ctx); }
  244.     /**
  245.      * {@inheritDoc}
  246.      *
  247.      * <p>The default implementation returns the result of calling
  248.      * {@link #visitChildren} on {@code ctx}.</p>
  249.      */
  250.     @Override public T visitExecutable_term(AgentParser.Executable_termContext ctx) { return visitChildren(ctx); }
  251.     /**
  252.      * {@inheritDoc}
  253.      *
  254.      * <p>The default implementation returns the result of calling
  255.      * {@link #visitChildren} on {@code ctx}.</p>
  256.      */
  257.     @Override public T visitTerm(AgentParser.TermContext ctx) { return visitChildren(ctx); }
  258.     /**
  259.      * {@inheritDoc}
  260.      *
  261.      * <p>The default implementation returns the result of calling
  262.      * {@link #visitChildren} on {@code ctx}.</p>
  263.      */
  264.     @Override public T visitUnification(AgentParser.UnificationContext ctx) { return visitChildren(ctx); }
  265.     /**
  266.      * {@inheritDoc}
  267.      *
  268.      * <p>The default implementation returns the result of calling
  269.      * {@link #visitChildren} on {@code ctx}.</p>
  270.      */
  271.     @Override public T visitUnification_constraint(AgentParser.Unification_constraintContext ctx) { return visitChildren(ctx); }
  272.     /**
  273.      * {@inheritDoc}
  274.      *
  275.      * <p>The default implementation returns the result of calling
  276.      * {@link #visitChildren} on {@code ctx}.</p>
  277.      */
  278.     @Override public T visitTernary_operation(AgentParser.Ternary_operationContext ctx) { return visitChildren(ctx); }
  279.     /**
  280.      * {@inheritDoc}
  281.      *
  282.      * <p>The default implementation returns the result of calling
  283.      * {@link #visitChildren} on {@code ctx}.</p>
  284.      */
  285.     @Override public T visitTernary_operation_true(AgentParser.Ternary_operation_trueContext ctx) { return visitChildren(ctx); }
  286.     /**
  287.      * {@inheritDoc}
  288.      *
  289.      * <p>The default implementation returns the result of calling
  290.      * {@link #visitChildren} on {@code ctx}.</p>
  291.      */
  292.     @Override public T visitTernary_operation_false(AgentParser.Ternary_operation_falseContext ctx) { return visitChildren(ctx); }
  293.     /**
  294.      * {@inheritDoc}
  295.      *
  296.      * <p>The default implementation returns the result of calling
  297.      * {@link #visitChildren} on {@code ctx}.</p>
  298.      */
  299.     @Override public T visitExpression(AgentParser.ExpressionContext ctx) { return visitChildren(ctx); }
  300.     /**
  301.      * {@inheritDoc}
  302.      *
  303.      * <p>The default implementation returns the result of calling
  304.      * {@link #visitChildren} on {@code ctx}.</p>
  305.      */
  306.     @Override public T visitExpression_bracket(AgentParser.Expression_bracketContext ctx) { return visitChildren(ctx); }
  307.     /**
  308.      * {@inheritDoc}
  309.      *
  310.      * <p>The default implementation returns the result of calling
  311.      * {@link #visitChildren} on {@code ctx}.</p>
  312.      */
  313.     @Override public T visitExpression_logical_and(AgentParser.Expression_logical_andContext ctx) { return visitChildren(ctx); }
  314.     /**
  315.      * {@inheritDoc}
  316.      *
  317.      * <p>The default implementation returns the result of calling
  318.      * {@link #visitChildren} on {@code ctx}.</p>
  319.      */
  320.     @Override public T visitExpression_logical_xor(AgentParser.Expression_logical_xorContext ctx) { return visitChildren(ctx); }
  321.     /**
  322.      * {@inheritDoc}
  323.      *
  324.      * <p>The default implementation returns the result of calling
  325.      * {@link #visitChildren} on {@code ctx}.</p>
  326.      */
  327.     @Override public T visitExpression_logical_element(AgentParser.Expression_logical_elementContext ctx) { return visitChildren(ctx); }
  328.     /**
  329.      * {@inheritDoc}
  330.      *
  331.      * <p>The default implementation returns the result of calling
  332.      * {@link #visitChildren} on {@code ctx}.</p>
  333.      */
  334.     @Override public T visitExpression_logical_negation(AgentParser.Expression_logical_negationContext ctx) { return visitChildren(ctx); }
  335.     /**
  336.      * {@inheritDoc}
  337.      *
  338.      * <p>The default implementation returns the result of calling
  339.      * {@link #visitChildren} on {@code ctx}.</p>
  340.      */
  341.     @Override public T visitExpression_numeric(AgentParser.Expression_numericContext ctx) { return visitChildren(ctx); }
  342.     /**
  343.      * {@inheritDoc}
  344.      *
  345.      * <p>The default implementation returns the result of calling
  346.      * {@link #visitChildren} on {@code ctx}.</p>
  347.      */
  348.     @Override public T visitExpression_numeric_relation(AgentParser.Expression_numeric_relationContext ctx) { return visitChildren(ctx); }
  349.     /**
  350.      * {@inheritDoc}
  351.      *
  352.      * <p>The default implementation returns the result of calling
  353.      * {@link #visitChildren} on {@code ctx}.</p>
  354.      */
  355.     @Override public T visitExpression_numeric_additive(AgentParser.Expression_numeric_additiveContext ctx) { return visitChildren(ctx); }
  356.     /**
  357.      * {@inheritDoc}
  358.      *
  359.      * <p>The default implementation returns the result of calling
  360.      * {@link #visitChildren} on {@code ctx}.</p>
  361.      */
  362.     @Override public T visitExpression_numeric_multiplicative(AgentParser.Expression_numeric_multiplicativeContext ctx) { return visitChildren(ctx); }
  363.     /**
  364.      * {@inheritDoc}
  365.      *
  366.      * <p>The default implementation returns the result of calling
  367.      * {@link #visitChildren} on {@code ctx}.</p>
  368.      */
  369.     @Override public T visitExpression_numeric_power(AgentParser.Expression_numeric_powerContext ctx) { return visitChildren(ctx); }
  370.     /**
  371.      * {@inheritDoc}
  372.      *
  373.      * <p>The default implementation returns the result of calling
  374.      * {@link #visitChildren} on {@code ctx}.</p>
  375.      */
  376.     @Override public T visitExpression_numeric_element(AgentParser.Expression_numeric_elementContext ctx) { return visitChildren(ctx); }
  377.     /**
  378.      * {@inheritDoc}
  379.      *
  380.      * <p>The default implementation returns the result of calling
  381.      * {@link #visitChildren} on {@code ctx}.</p>
  382.      */
  383.     @Override public T visitExecutable_action(AgentParser.Executable_actionContext ctx) { return visitChildren(ctx); }
  384.     /**
  385.      * {@inheritDoc}
  386.      *
  387.      * <p>The default implementation returns the result of calling
  388.      * {@link #visitChildren} on {@code ctx}.</p>
  389.      */
  390.     @Override public T visitExecutable_rule(AgentParser.Executable_ruleContext ctx) { return visitChildren(ctx); }
  391.     /**
  392.      * {@inheritDoc}
  393.      *
  394.      * <p>The default implementation returns the result of calling
  395.      * {@link #visitChildren} on {@code ctx}.</p>
  396.      */
  397.     @Override public T visitVariable_evaluate(AgentParser.Variable_evaluateContext ctx) { return visitChildren(ctx); }
  398.     /**
  399.      * {@inheritDoc}
  400.      *
  401.      * <p>The default implementation returns the result of calling
  402.      * {@link #visitChildren} on {@code ctx}.</p>
  403.      */
  404.     @Override public T visitLiteral(AgentParser.LiteralContext ctx) { return visitChildren(ctx); }
  405.     /**
  406.      * {@inheritDoc}
  407.      *
  408.      * <p>The default implementation returns the result of calling
  409.      * {@link #visitChildren} on {@code ctx}.</p>
  410.      */
  411.     @Override public T visitTermlist(AgentParser.TermlistContext ctx) { return visitChildren(ctx); }
  412.     /**
  413.      * {@inheritDoc}
  414.      *
  415.      * <p>The default implementation returns the result of calling
  416.      * {@link #visitChildren} on {@code ctx}.</p>
  417.      */
  418.     @Override public T visitVariablelist(AgentParser.VariablelistContext ctx) { return visitChildren(ctx); }
  419.     /**
  420.      * {@inheritDoc}
  421.      *
  422.      * <p>The default implementation returns the result of calling
  423.      * {@link #visitChildren} on {@code ctx}.</p>
  424.      */
  425.     @Override public T visitAtom(AgentParser.AtomContext ctx) { return visitChildren(ctx); }
  426.     /**
  427.      * {@inheritDoc}
  428.      *
  429.      * <p>The default implementation returns the result of calling
  430.      * {@link #visitChildren} on {@code ctx}.</p>
  431.      */
  432.     @Override public T visitVariable(AgentParser.VariableContext ctx) { return visitChildren(ctx); }
  433.     /**
  434.      * {@inheritDoc}
  435.      *
  436.      * <p>The default implementation returns the result of calling
  437.      * {@link #visitChildren} on {@code ctx}.</p>
  438.      */
  439.     @Override public T visitVariableatom(AgentParser.VariableatomContext ctx) { return visitChildren(ctx); }
  440.     /**
  441.      * {@inheritDoc}
  442.      *
  443.      * <p>The default implementation returns the result of calling
  444.      * {@link #visitChildren} on {@code ctx}.</p>
  445.      */
  446.     @Override public T visitNumber(AgentParser.NumberContext ctx) { return visitChildren(ctx); }
  447.     /**
  448.      * {@inheritDoc}
  449.      *
  450.      * <p>The default implementation returns the result of calling
  451.      * {@link #visitChildren} on {@code ctx}.</p>
  452.      */
  453.     @Override public T visitDigitsequence(AgentParser.DigitsequenceContext ctx) { return visitChildren(ctx); }
  454. }