Skip to content

Commit d812c8f

Browse files
committed
Add JavaDocs
1 parent a509ba0 commit d812c8f

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

liquidjava-verifier/src/main/java/liquidjava/rj_language/SimplifiedPredicate.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66

77
import spoon.reflect.reference.CtTypeReference;
88

9+
/**
10+
* Represents a predicate simplified from another predicate. Stores the original predicate and any variables that must
11+
* be reintroduced as binders when relating the simplified predicate back to its origin.
12+
* <p>
13+
* For example, simplifying {@code x == 1 && y > x} with binders {@code x: int, y: int} may produce
14+
* {@code y > 1}. The origin {@code x == 1 && y > x} and binder {@code x: int} are kept so we can relate the simplified predicate back to the original.
15+
*/
916
public class SimplifiedPredicate extends Predicate {
1017

1118
private final Predicate origin;
@@ -56,6 +63,9 @@ public boolean equals(Object obj) {
5663
&& binders.equals(other.binders);
5764
}
5865

66+
/**
67+
* Represents a variable that must be bound when relating the simplified predicate to its origin
68+
*/
5969
public static class Binder {
6070
private final String name;
6171
private final String type;

0 commit comments

Comments
 (0)