Class AbstractingJPPExpressionVisitor
java.lang.Object
org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<StringBuilder>
org.variantsync.diffdetective.feature.jpp.AbstractingJPPExpressionVisitor
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<StringBuilder>
,JPPExpressionVisitor<StringBuilder>
public class AbstractingJPPExpressionVisitor
extends org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<StringBuilder>
implements JPPExpressionVisitor<StringBuilder>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionVisit a parse tree produced byJPPExpressionParser.comparisonExpression()
.Visit a parse tree produced byJPPExpressionParser.definedExpression()
.private StringBuilder
visitExpression
(org.antlr.v4.runtime.ParserRuleContext expressionContext, Function<org.antlr.v4.runtime.tree.ParseTree, Boolean> instanceCheck) Abstract all child nodes in the parse tree.Visit a parse tree produced byJPPExpressionParser.expression()
.Visit a parse tree produced byJPPExpressionParser.logicalAndExpression()
.private StringBuilder
visitLogicalExpression
(org.antlr.v4.runtime.ParserRuleContext expressionContext, Function<org.antlr.v4.runtime.tree.ParseTree, Boolean> instanceCheck) Visit a parse tree produced byJPPExpressionParser.logicalOrExpression()
.Visit a parse tree produced byJPPExpressionParser.operand()
.Visit a parse tree produced byJPPExpressionParser.primaryExpression()
.Visit a parse tree produced byJPPExpressionParser.propertyExpression()
.Visit a parse tree produced byJPPExpressionParser.unaryOperator()
.Visit a parse tree produced byJPPExpressionParser.undefinedExpression()
.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
-
AbstractingJPPExpressionVisitor
public AbstractingJPPExpressionVisitor()
-
-
Method Details
-
visitExpression
Description copied from interface:JPPExpressionVisitor
Visit a parse tree produced byJPPExpressionParser.expression()
.- Specified by:
visitExpression
in interfaceJPPExpressionVisitor<StringBuilder>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLogicalOrExpression
Description copied from interface:JPPExpressionVisitor
Visit a parse tree produced byJPPExpressionParser.logicalOrExpression()
.- Specified by:
visitLogicalOrExpression
in interfaceJPPExpressionVisitor<StringBuilder>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLogicalAndExpression
Description copied from interface:JPPExpressionVisitor
Visit a parse tree produced byJPPExpressionParser.logicalAndExpression()
.- Specified by:
visitLogicalAndExpression
in interfaceJPPExpressionVisitor<StringBuilder>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPrimaryExpression
Description copied from interface:JPPExpressionVisitor
Visit a parse tree produced byJPPExpressionParser.primaryExpression()
.- Specified by:
visitPrimaryExpression
in interfaceJPPExpressionVisitor<StringBuilder>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitComparisonExpression
Description copied from interface:JPPExpressionVisitor
Visit a parse tree produced byJPPExpressionParser.comparisonExpression()
.- Specified by:
visitComparisonExpression
in interfaceJPPExpressionVisitor<StringBuilder>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitOperand
Description copied from interface:JPPExpressionVisitor
Visit a parse tree produced byJPPExpressionParser.operand()
.- Specified by:
visitOperand
in interfaceJPPExpressionVisitor<StringBuilder>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDefinedExpression
Description copied from interface:JPPExpressionVisitor
Visit a parse tree produced byJPPExpressionParser.definedExpression()
.- Specified by:
visitDefinedExpression
in interfaceJPPExpressionVisitor<StringBuilder>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitUndefinedExpression
Description copied from interface:JPPExpressionVisitor
Visit a parse tree produced byJPPExpressionParser.undefinedExpression()
.- Specified by:
visitUndefinedExpression
in interfaceJPPExpressionVisitor<StringBuilder>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPropertyExpression
Description copied from interface:JPPExpressionVisitor
Visit a parse tree produced byJPPExpressionParser.propertyExpression()
.- Specified by:
visitPropertyExpression
in interfaceJPPExpressionVisitor<StringBuilder>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitUnaryOperator
Description copied from interface:JPPExpressionVisitor
Visit a parse tree produced byJPPExpressionParser.unaryOperator()
.- Specified by:
visitUnaryOperator
in interfaceJPPExpressionVisitor<StringBuilder>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitLogicalExpression
private StringBuilder visitLogicalExpression(org.antlr.v4.runtime.ParserRuleContext expressionContext, Function<org.antlr.v4.runtime.tree.ParseTree, Boolean> instanceCheck) -
visitExpression
private StringBuilder visitExpression(org.antlr.v4.runtime.ParserRuleContext expressionContext, Function<org.antlr.v4.runtime.tree.ParseTree, Boolean> instanceCheck) Abstract all child nodes in the parse tree.- Parameters:
expressionContext
- The root of the subtree to abstractinstanceCheck
- A check for expected child node types- Returns:
- The abstracted formula of the subtree
-