forked from JavaTX/JavaCompilerCore
subst rule interface
This commit is contained in:
parent
777a9b5beb
commit
176ec7b707
@ -25,4 +25,6 @@ public interface IRuleSet {
|
||||
public MPair adapt(MPair pair);
|
||||
public MPair adaptExt(MPair pair);
|
||||
public MPair adaptSup(MPair pair);
|
||||
|
||||
public Optional<IUnifier> subst(MPair pair);
|
||||
}
|
||||
|
@ -0,0 +1,9 @@
|
||||
package de.dhbwstuttgart.typeinference.unify.interfaces;
|
||||
|
||||
import java.util.Optional;
|
||||
|
||||
import de.dhbwstuttgart.typinference.unify.model.MPair;
|
||||
|
||||
public interface IUnifier {
|
||||
public Optional<MPair> apply(MPair pair);
|
||||
}
|
@ -7,6 +7,7 @@ import java.util.Set;
|
||||
import junit.framework.Assert;
|
||||
import de.dhbwstuttgart.typeinference.unify.interfaces.IFiniteClosure;
|
||||
import de.dhbwstuttgart.typeinference.unify.interfaces.IRuleSet;
|
||||
import de.dhbwstuttgart.typeinference.unify.interfaces.IUnifier;
|
||||
import de.dhbwstuttgart.typinference.unify.model.ExtendsType;
|
||||
import de.dhbwstuttgart.typinference.unify.model.MPair;
|
||||
import de.dhbwstuttgart.typinference.unify.model.MPair.PairOperator;
|
||||
@ -396,5 +397,11 @@ public class RuleSet implements IRuleSet{
|
||||
if(succ) return permutation;
|
||||
return new int[0];
|
||||
}
|
||||
|
||||
@Override
|
||||
public Optional<IUnifier> subst(MPair pair) {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user