diff options
Diffstat (limited to 'subprojects/store-query/src/main/java/tools/refinery/store/query/term/NodeSort.java')
-rw-r--r-- | subprojects/store-query/src/main/java/tools/refinery/store/query/term/NodeSort.java | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/subprojects/store-query/src/main/java/tools/refinery/store/query/term/NodeSort.java b/subprojects/store-query/src/main/java/tools/refinery/store/query/term/NodeSort.java deleted file mode 100644 index b9be03f7..00000000 --- a/subprojects/store-query/src/main/java/tools/refinery/store/query/term/NodeSort.java +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | /* | ||
2 | * SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/> | ||
3 | * | ||
4 | * SPDX-License-Identifier: EPL-2.0 | ||
5 | */ | ||
6 | package tools.refinery.store.query.term; | ||
7 | |||
8 | import org.jetbrains.annotations.Nullable; | ||
9 | |||
10 | public final class NodeSort implements Sort { | ||
11 | public static final NodeSort INSTANCE = new NodeSort(); | ||
12 | |||
13 | private NodeSort() { | ||
14 | } | ||
15 | |||
16 | @Override | ||
17 | public boolean isInstance(Variable variable) { | ||
18 | return variable instanceof NodeVariable; | ||
19 | } | ||
20 | |||
21 | @Override | ||
22 | public NodeVariable newInstance(@Nullable String name) { | ||
23 | return new NodeVariable(name); | ||
24 | } | ||
25 | |||
26 | @Override | ||
27 | public NodeVariable newInstance() { | ||
28 | return newInstance(null); | ||
29 | } | ||
30 | |||
31 | @Override | ||
32 | public String toString() { | ||
33 | return "<node>"; | ||
34 | } | ||
35 | } | ||