]> gerrit.simantics Code Review - simantics/platform.git/blob
10f2317ab7fba7d8b4914f9811f185117322b745
[simantics/platform.git] /
1 package org.simantics.scl.compiler.elaboration.chr.relations;
2
3 import org.simantics.scl.compiler.elaboration.chr.CHRRelation;
4 import org.simantics.scl.compiler.elaboration.relations.SCLRelation;
5 import org.simantics.scl.compiler.types.TVar;
6 import org.simantics.scl.compiler.types.Type;
7
8 public class ExternalCHRRelation implements CHRRelation {
9     public final SCLRelation relation;
10
11     public ExternalCHRRelation(SCLRelation relation) {
12         this.relation = relation;
13     }
14
15     @Override
16     public TVar[] getTypeVariables() {
17         return relation.getTypeVariables();
18     }
19
20     @Override
21     public Type[] getParameterTypes() {
22         return relation.getParameterTypes();
23     }
24     
25     @Override
26     public String toString() {
27         return relation.toString();
28     }
29 }