- 所有超级接口:
AyaDocile
- 所有已知实现类:
Pat.Absurd,Pat.Bind,Pat.Ctor,Pat.End,Pat.Meta,Pat.ShapedInt,Pat.Tuple
public sealed interface Pat
extends AyaDocile
permits Pat.Meta, Pat.Bind, Pat.Absurd, Pat.Tuple, Pat.Ctor, Pat.End, Pat.ShapedInt
-
嵌套类概要
嵌套类修饰符和类型接口说明static final recordstatic final recordstatic final recordstatic final recordstatic final recordstatic final recordPat.Preclause<T extends AyaDocile>It's 'pre' because there are also impossible clauses, which are removed after tycking.static final recordTODO[literal]: literal type needs meta-solving for first-class patterns.static final record -
方法概要
修饰符和类型方法说明booleanexplicit()static @NotNull kala.collection.immutable.ImmutableSeq<Term.Param>extractTele(@NotNull kala.collection.SeqLike<Pat> pats) @NotNull Pat@NotNull PatvoidstoreBindings(@NotNull LocalCtx ctx) toArg()default @NotNull org.aya.pretty.doc.DoctoDoc(@NotNull org.aya.util.distill.DistillerOptions options) @NotNull ExprtoExpr(@NotNull org.aya.util.error.SourcePos pos) default @NotNull TermtoTerm()@NotNull Pat从接口继承的方法 org.aya.generic.AyaDocile
debuggerOnlyToDoc
-
方法详细资料
-
explicit
boolean explicit() -
toTerm
-
toExpr
-
toArg
-
toDoc
@NotNull default @NotNull org.aya.pretty.doc.Doc toDoc(@NotNull @NotNull org.aya.util.distill.DistillerOptions options) -
rename
-
zonk
-
inline
- 参数:
ctx- when null, the solutions will not be inlined- 返回:
- inlined patterns
-
storeBindings
-
extractTele
@NotNull static @NotNull kala.collection.immutable.ImmutableSeq<Term.Param> extractTele(@NotNull @NotNull kala.collection.SeqLike<Pat> pats)
-