|
11 | 11 |
|
12 | 12 | class VCSimplificationUtils { |
13 | 13 |
|
14 | | - private VCSimplificationUtils() { |
15 | | - } |
16 | | - |
17 | | - static Expression activeExpression(Predicate refinement) { |
| 14 | + public static Expression activeExpression(Predicate refinement) { |
18 | 15 | if (refinement instanceof SimplifiedPredicate simplified) |
19 | 16 | return simplified.getSimplifiedPredicate().getExpression().clone(); |
20 | 17 | return refinement.getExpression().clone(); |
21 | 18 | } |
22 | 19 |
|
23 | | - static Predicate originPredicate(Predicate refinement) { |
| 20 | + public static Predicate originPredicate(Predicate refinement) { |
24 | 21 | if (refinement instanceof SimplifiedPredicate simplified) |
25 | 22 | return simplified.getOrigin().clone(); |
26 | 23 | return refinement.clone(); |
27 | 24 | } |
28 | 25 |
|
29 | | - static List<Binder> binders(Predicate refinement) { |
30 | | - if (refinement instanceof SimplifiedPredicate simplified) |
31 | | - return new ArrayList<>(simplified.getBinders()); |
32 | | - return new ArrayList<>(); |
33 | | - } |
34 | | - |
35 | | - static VCImplication copyWithRefinement(VCImplication implication, Predicate refinement) { |
| 26 | + public static VCImplication copyWithRefinement(VCImplication implication, Predicate refinement) { |
36 | 27 | if (implication.hasBinder()) |
37 | 28 | return new VCImplication(implication.getName(), implication.getType(), refinement); |
38 | 29 | return new VCImplication(refinement); |
39 | 30 | } |
40 | 31 |
|
41 | | - static boolean sameVc(VCImplication left, VCImplication right) { |
| 32 | + public static boolean sameVc(VCImplication left, VCImplication right) { |
42 | 33 | if (left == null || right == null) |
43 | 34 | return left == right; |
44 | 35 | return left.toString().equals(right.toString()); |
|
0 commit comments