Class QueryGrammarToSpecVisitor

java.lang.Object
org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarBaseVisitor<LogicElementSpec>
edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarToSpecVisitor
All Implemented Interfaces:
edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarVisitor<LogicElementSpec>, org.antlr.v4.runtime.tree.ParseTreeVisitor<LogicElementSpec>

public class QueryGrammarToSpecVisitor extends edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarBaseVisitor<LogicElementSpec>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected BodySpec
    createBody(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarParser.BodyContext ctx)
     
    visitBooleanBuiltInLiteral(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarParser.BooleanBuiltInLiteralContext ctx)
     
    visitComparisonBuiltInLiteral(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarParser.ComparisonBuiltInLiteralContext ctx)
     
    visitCustomBuiltInLiteral(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarParser.CustomBuiltInLiteralContext ctx)
     
    visitNegatedAtom(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarParser.NegatedAtomContext ctx)
     
    visitPositiveAtom(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarParser.PositiveAtomContext ctx)
     
    visitProg(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarParser.ProgContext ctx)
     
    visitQuery(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarParser.QueryContext ctx)
     
    visitTerm(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarParser.TermContext ctx)
     

    Methods inherited from class edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarBaseVisitor

    visitAtom, visitBody, visitBuiltInLiteral, visitLine, visitLiteral, visitOrdinaryLiteral, visitPredicate, visitTermsList

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

    aggregateResult, defaultResult, shouldVisitNextChild, visit, visitChildren, visitErrorNode, visitTerminal

    Methods inherited from class java.lang.Object

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

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

    visit, visitChildren, visitErrorNode, visitTerminal
  • Constructor Details

  • Method Details

    • visitProg

      public QuerySetSpec visitProg(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarParser.ProgContext ctx)
      Specified by:
      visitProg in interface edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarVisitor<LogicElementSpec>
      Overrides:
      visitProg in class edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarBaseVisitor<LogicElementSpec>
    • visitQuery

      public QuerySpec visitQuery(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarParser.QueryContext ctx)
      Specified by:
      visitQuery in interface edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarVisitor<LogicElementSpec>
      Overrides:
      visitQuery in class edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarBaseVisitor<LogicElementSpec>
    • createBody

      protected BodySpec createBody(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarParser.BodyContext ctx)
    • visitComparisonBuiltInLiteral

      public BuiltInLiteralSpec visitComparisonBuiltInLiteral(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarParser.ComparisonBuiltInLiteralContext ctx)
      Specified by:
      visitComparisonBuiltInLiteral in interface edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarVisitor<LogicElementSpec>
      Overrides:
      visitComparisonBuiltInLiteral in class edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarBaseVisitor<LogicElementSpec>
    • visitBooleanBuiltInLiteral

      public BuiltInLiteralSpec visitBooleanBuiltInLiteral(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarParser.BooleanBuiltInLiteralContext ctx)
      Specified by:
      visitBooleanBuiltInLiteral in interface edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarVisitor<LogicElementSpec>
      Overrides:
      visitBooleanBuiltInLiteral in class edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarBaseVisitor<LogicElementSpec>
    • visitCustomBuiltInLiteral

      public BuiltInLiteralSpec visitCustomBuiltInLiteral(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarParser.CustomBuiltInLiteralContext ctx)
      Specified by:
      visitCustomBuiltInLiteral in interface edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarVisitor<LogicElementSpec>
      Overrides:
      visitCustomBuiltInLiteral in class edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarBaseVisitor<LogicElementSpec>
    • visitPositiveAtom

      public OrdinaryLiteralSpec visitPositiveAtom(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarParser.PositiveAtomContext ctx)
      Specified by:
      visitPositiveAtom in interface edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarVisitor<LogicElementSpec>
      Overrides:
      visitPositiveAtom in class edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarBaseVisitor<LogicElementSpec>
    • visitNegatedAtom

      public OrdinaryLiteralSpec visitNegatedAtom(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarParser.NegatedAtomContext ctx)
      Specified by:
      visitNegatedAtom in interface edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarVisitor<LogicElementSpec>
      Overrides:
      visitNegatedAtom in class edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarBaseVisitor<LogicElementSpec>
    • visitTerm

      public TermSpec visitTerm(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarParser.TermContext ctx)
      Specified by:
      visitTerm in interface edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarVisitor<LogicElementSpec>
      Overrides:
      visitTerm in class edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.QueryGrammarBaseVisitor<LogicElementSpec>