blob: ce6c11fe7563313f3f664340a995f706b27a49e9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/*
* SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/>
*
* SPDX-License-Identifier: EPL-2.0
*/
package tools.refinery.store.query.literal;
import tools.refinery.store.query.equality.LiteralEqualityHelper;
import tools.refinery.store.query.substitution.Substitution;
import tools.refinery.store.query.term.Variable;
import java.util.Set;
public interface Literal {
Set<Variable> getOutputVariables();
Set<Variable> getInputVariables(Set<? extends Variable> positiveVariablesInClause);
Set<Variable> getPrivateVariables(Set<? extends Variable> positiveVariablesInClause);
Literal substitute(Substitution substitution);
default Literal reduce() {
return this;
}
@SuppressWarnings("BooleanMethodIsAlwaysInverted")
boolean equalsWithSubstitution(LiteralEqualityHelper helper, Literal other);
}
|