java.lang.Object
org.aya.tyck.unify.TermComparator
- 直接已知子类:
Unifier
Bidirectional unification of terms, with abstract
solveMeta(org.aya.core.term.Term, org.aya.tyck.unify.TermComparator.Sub, org.aya.tyck.unify.TermComparator.Sub, org.aya.core.term.CallTerm.Hole).
This class is not called Comparator because there is already Comparator.-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明protected final @NotNull org.aya.util.Orderingprotected final @NotNull LocalCtxprotected final @NotNull org.aya.util.error.SourcePosprotected final @NotNull org.aya.util.reporter.Reporterprotected final @NotNull TyckStateprotected final Trace.Builder -
构造器概要
构造器构造器说明TermComparator(Trace.Builder traceBuilder, @NotNull TyckState state, @NotNull org.aya.util.reporter.Reporter reporter, @NotNull org.aya.util.error.SourcePos pos, @NotNull org.aya.util.Ordering cmp, @NotNull LocalCtx ctx) -
方法概要
修饰符和类型方法说明booleanprotected final booleancompare(Term lhs, Term rhs, TermComparator.Sub lr, TermComparator.Sub rl, @Nullable Term type) booleanprotected @Nullable TermcompareUntyped(@NotNull Term lhs, @NotNull Term rhs, TermComparator.Sub lr, TermComparator.Sub rl) @NotNull TermComparator.FailureDataprotected abstract @Nullable TermsolveMeta(@NotNull Term preRhs, TermComparator.Sub lr, TermComparator.Sub rl, CallTerm.Hole lhs) protected final voidtracing(@NotNull Consumer<@NotNull Trace.Builder> consumer) static <E> EwithIntervals(kala.collection.SeqView<LocalVar> l, kala.collection.SeqView<LocalVar> r, TermComparator.Sub lr, TermComparator.Sub rl, Supplier<E> supplier)
-
字段详细资料
-
traceBuilder
-
state
-
reporter
@NotNull protected final @NotNull org.aya.util.reporter.Reporter reporter -
pos
@NotNull protected final @NotNull org.aya.util.error.SourcePos pos -
cmp
@NotNull protected final @NotNull org.aya.util.Ordering cmp -
ctx
-
-
构造器详细资料
-
TermComparator
public TermComparator(@Nullable Trace.Builder traceBuilder, @NotNull @NotNull TyckState state, @NotNull @NotNull org.aya.util.reporter.Reporter reporter, @NotNull @NotNull org.aya.util.error.SourcePos pos, @NotNull @NotNull org.aya.util.Ordering cmp, @NotNull @NotNull LocalCtx ctx)
-
-
方法详细资料
-
withIntervals
public static <E> E withIntervals(kala.collection.SeqView<LocalVar> l, kala.collection.SeqView<LocalVar> r, TermComparator.Sub lr, TermComparator.Sub rl, Supplier<E> supplier) -
getFailure
-
tracing
-
compare
-
compare
protected final boolean compare(Term lhs, Term rhs, TermComparator.Sub lr, TermComparator.Sub rl, @Nullable @Nullable Term type) -
compareUntyped
@Nullable protected @Nullable Term compareUntyped(@NotNull @NotNull Term lhs, @NotNull @NotNull Term rhs, TermComparator.Sub lr, TermComparator.Sub rl) -
solveMeta
@Nullable protected abstract @Nullable Term solveMeta(@NotNull @NotNull Term preRhs, TermComparator.Sub lr, TermComparator.Sub rl, @NotNull CallTerm.Hole lhs) -
compareSort
-