Package daikon.diff
Class XorVisitor
- Object
-
- DepthFirstVisitor
-
- XorVisitor
-
- All Implemented Interfaces:
Visitor
public class XorVisitor extends DepthFirstVisitor
Computes A xor B, where A and B are the two sets of invariants.
-
-
Constructor Summary
Constructors Constructor Description XorVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InvMap
getResult()
Returns the InvMap generated as a result of the traversal.void
visit(InvNode node)
If one invariant is null and the other is not, add the non-null invariant to the result set.void
visit(PptNode node)
Every node has at least one non-null ppt.-
Methods inherited from class DepthFirstVisitor
visit
-
-
-
-
Constructor Detail
-
XorVisitor
public XorVisitor()
-
-
Method Detail
-
visit
public void visit(PptNode node)
Every node has at least one non-null ppt. Add one of the non-null ppt to the result.- Specified by:
visit
in interfaceVisitor
- Overrides:
visit
in classDepthFirstVisitor
-
visit
@RequiresNonNull("currentPpt") public void visit(InvNode node)
If one invariant is null and the other is not, add the non-null invariant to the result set.- Specified by:
visit
in interfaceVisitor
- Overrides:
visit
in classDepthFirstVisitor
-
-