blob: cf946d545e33acd52e5e5a7479f6bab7b9be4bb6 (
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
|
/*
* SPDX-FileCopyrightText: 2021-2023 The Refinery Authors <https://refinery.tools/>
*
* SPDX-License-Identifier: EPL-2.0
*/
package tools.refinery.store.query.view;
import tools.refinery.store.query.term.DataSort;
import tools.refinery.store.query.term.Sort;
import tools.refinery.store.representation.Symbol;
public final class FunctionView<T> extends AbstractFunctionView<T> {
public FunctionView(Symbol<T> symbol, String name) {
super(symbol, name);
}
public FunctionView(Symbol<T> symbol) {
this(symbol, "function");
}
@Override
protected Sort getForwardMappedValueSort() {
return new DataSort<>(getSymbol().valueType());
}
}
|