Class LogicSchemaGrammarToSpecVisitor<T extends LogicConstraintSpec>
java.lang.Object
org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarBaseVisitor<LogicElementSpec>
edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarToSpecVisitor<T>
- All Implemented Interfaces:
edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarVisitor<LogicElementSpec>
,org.antlr.v4.runtime.tree.ParseTreeVisitor<LogicElementSpec>
- Direct Known Subclasses:
LogicSchemaWithIDsGrammarToSpecVisitor
,LogicSchemaWithoutIDsGrammarToSpecVisitor
public abstract class LogicSchemaGrammarToSpecVisitor<T extends LogicConstraintSpec>
extends edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarBaseVisitor<LogicElementSpec>
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
LogicSchemaGrammarToSpecVisitor
(StringToTermSpecFactory stringToTermSpecFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected BodySpec
createBody
(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarParser.BodyContext ctx) visitBooleanBuiltInLiteral
(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarParser.BooleanBuiltInLiteralContext ctx) visitComparisonBuiltInLiteral
(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarParser.ComparisonBuiltInLiteralContext ctx) visitCustomBuiltInLiteral
(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarParser.CustomBuiltInLiteralContext ctx) visitDerivationRule
(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarParser.DerivationRuleContext ctx) visitNegatedAtom
(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarParser.NegatedAtomContext ctx) visitPositiveAtom
(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarParser.PositiveAtomContext ctx) visitProg
(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarParser.ProgContext ctx) visitTerm
(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarParser.TermContext ctx) Methods inherited from class edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarBaseVisitor
visitAtom, visitBody, visitBuiltInLiteral, visitConstraint, 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
-
Field Details
-
logicSchemaSpec
-
-
Constructor Details
-
LogicSchemaGrammarToSpecVisitor
-
-
Method Details
-
visitProg
public LogicSchemaSpec<T> visitProg(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarParser.ProgContext ctx) - Specified by:
visitProg
in interfaceedu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarVisitor<T extends LogicConstraintSpec>
- Overrides:
visitProg
in classedu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarBaseVisitor<LogicElementSpec>
-
visitDerivationRule
public DerivationRuleSpec visitDerivationRule(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarParser.DerivationRuleContext ctx) - Specified by:
visitDerivationRule
in interfaceedu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarVisitor<T extends LogicConstraintSpec>
- Overrides:
visitDerivationRule
in classedu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarBaseVisitor<LogicElementSpec>
-
createBody
protected BodySpec createBody(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarParser.BodyContext ctx) -
visitComparisonBuiltInLiteral
public BuiltInLiteralSpec visitComparisonBuiltInLiteral(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarParser.ComparisonBuiltInLiteralContext ctx) - Specified by:
visitComparisonBuiltInLiteral
in interfaceedu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarVisitor<T extends LogicConstraintSpec>
- Overrides:
visitComparisonBuiltInLiteral
in classedu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarBaseVisitor<LogicElementSpec>
-
visitBooleanBuiltInLiteral
public BuiltInLiteralSpec visitBooleanBuiltInLiteral(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarParser.BooleanBuiltInLiteralContext ctx) - Specified by:
visitBooleanBuiltInLiteral
in interfaceedu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarVisitor<T extends LogicConstraintSpec>
- Overrides:
visitBooleanBuiltInLiteral
in classedu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarBaseVisitor<LogicElementSpec>
-
visitCustomBuiltInLiteral
public BuiltInLiteralSpec visitCustomBuiltInLiteral(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarParser.CustomBuiltInLiteralContext ctx) - Specified by:
visitCustomBuiltInLiteral
in interfaceedu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarVisitor<T extends LogicConstraintSpec>
- Overrides:
visitCustomBuiltInLiteral
in classedu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarBaseVisitor<LogicElementSpec>
-
visitPositiveAtom
public OrdinaryLiteralSpec visitPositiveAtom(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarParser.PositiveAtomContext ctx) - Specified by:
visitPositiveAtom
in interfaceedu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarVisitor<T extends LogicConstraintSpec>
- Overrides:
visitPositiveAtom
in classedu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarBaseVisitor<LogicElementSpec>
-
visitNegatedAtom
public OrdinaryLiteralSpec visitNegatedAtom(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarParser.NegatedAtomContext ctx) - Specified by:
visitNegatedAtom
in interfaceedu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarVisitor<T extends LogicConstraintSpec>
- Overrides:
visitNegatedAtom
in classedu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarBaseVisitor<LogicElementSpec>
-
visitTerm
public TermSpec visitTerm(edu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarParser.TermContext ctx) - Specified by:
visitTerm
in interfaceedu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarVisitor<T extends LogicConstraintSpec>
- Overrides:
visitTerm
in classedu.upc.fib.inlab.imp.kse.logics.logicschema.services.parser.LogicSchemaGrammarBaseVisitor<LogicElementSpec>
-