Class ControllingCExpressionVisitor

java.lang.Object
org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<StringBuilder>
org.variantsync.diffdetective.feature.cpp.ControllingCExpressionVisitor
All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTreeVisitor<StringBuilder>, CExpressionVisitor<StringBuilder>

public class ControllingCExpressionVisitor extends org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<StringBuilder> implements CExpressionVisitor<StringBuilder>
Visitor that controls how formulas given as an ANTLR parse tree are abstracted. To this end, the visitor traverses the parse tree, searching for subtrees that should be abstracted. If such a subtree is found, the visitor calls an AbstractingCExpressionVisitor to abstract the entire subtree. Only those parts of a formula are abstracted that require abstraction, leaving ancestors in the tree unchanged.