blob: bb3803d337ccb0495ea1967256c159f27c877c13 (
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
|
/*
* SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/>
*
* SPDX-License-Identifier: EPL-2.0
*/
package tools.refinery.store.query.substitution;
import tools.refinery.store.query.term.Variable;
public enum StatelessSubstitution implements Substitution {
FAILING {
@Override
public Variable getSubstitute(Variable variable) {
throw new IllegalArgumentException("No substitute for " + variable);
}
},
IDENTITY {
@Override
public Variable getSubstitute(Variable variable) {
return variable;
}
}
}
|