]> gerrit.simantics Code Review - simantics/platform.git/blob
3d2a1e4e892f70093e570ed17a0ed34d72f15d02
[simantics/platform.git] /
1 package org.simantics.scl.compiler.elaboration.relations;
2
3 import org.simantics.scl.compiler.elaboration.expressions.Expression;
4 import org.simantics.scl.compiler.elaboration.expressions.Variable;
5 import org.simantics.scl.compiler.elaboration.query.compilation.EnforcingContext;
6 import org.simantics.scl.compiler.types.Type;
7
8 public abstract class AbstractRelation implements SCLRelation {
9
10     @Override
11     public int getPhase() {
12         return 0;
13     }
14
15     @Override
16     public Expression generateEnforce(long location, EnforcingContext context, Type[] typeParameters, Variable[] parameters) {
17         throw new UnsupportedOperationException(getClass().getSimpleName() + " does not support enforce.");
18     }
19 }