blob: 58b4cb1da1763ba67edba2b36073b5d2227cb3c8 (
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
|
/*
* SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/>
*
* SPDX-License-Identifier: EPL-2.0
*/
package tools.refinery.logic.term;
import tools.refinery.logic.equality.LiteralEqualityHelper;
import tools.refinery.logic.equality.LiteralHashCodeHelper;
import tools.refinery.logic.substitution.Substitution;
import java.util.Set;
public sealed interface AnyTerm permits AnyDataVariable, Term {
Class<?> getType();
AnyTerm substitute(Substitution substitution);
boolean equalsWithSubstitution(LiteralEqualityHelper helper, AnyTerm other);
int hashCodeWithSubstitution(LiteralHashCodeHelper helper);
Set<AnyDataVariable> getInputVariables();
}
|