aboutsummaryrefslogtreecommitdiffstats
path: root/subprojects/store-reasoning/src/main/java/tools/refinery/store/reasoning/translator/typehierarchy/MayTypeView.java
blob: dcaf61c5109f512d228bb0367887a128a07fc667 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * SPDX-FileCopyrightText: 2023 The Refinery Authors <https://refinery.tools/>
 *
 * SPDX-License-Identifier: EPL-2.0
 */
package tools.refinery.store.reasoning.translator.typehierarchy;

import tools.refinery.store.reasoning.representation.PartialRelation;
import tools.refinery.store.representation.Symbol;
import tools.refinery.store.tuple.Tuple;

class MayTypeView extends InferredTypeView {
	public MayTypeView(Symbol<InferredType> symbol, PartialRelation type) {
		super(symbol, "may", type);
	}

	@Override
	protected boolean doFilter(Tuple key, InferredType value) {
		return value.mayConcreteTypes().contains(type);
	}
}