java.lang.Object
java.lang.Record
org.aya.tyck.error.BadTypeError
- 所有已实现的接口:
ExprProblem,TyckError,org.aya.util.reporter.Problem
-
嵌套类概要
从接口继承的嵌套类/接口 org.aya.util.reporter.Problem
org.aya.util.reporter.Problem.Severity, org.aya.util.reporter.Problem.Stage -
字段概要
从接口继承的字段 org.aya.util.reporter.Problem
ERROR, NOTE, TEXT -
构造器概要
构造器构造器说明BadTypeError(@NotNull Expr expr, @NotNull Term actualType, @NotNull org.aya.pretty.doc.Doc action, @NotNull org.aya.pretty.doc.Doc thing, @NotNull AyaDocile desired, @NotNull TyckState state) 创建BadTypeError记录类的实例。 -
方法概要
修饰符和类型方法说明@NotNull org.aya.pretty.doc.Docaction()返回action记录组件的值。@NotNull Term返回actualType记录组件的值。@NotNull org.aya.pretty.doc.Docdescribe(@NotNull org.aya.util.distill.DistillerOptions options) @NotNull AyaDociledesired()返回desired记录组件的值。final boolean指示某个其他对象是否“等于”此对象。@NotNull Exprexpr()返回expr记录组件的值。final inthashCode()返回此对象的哈希代码值。@NotNull org.aya.pretty.doc.Dochint(@NotNull org.aya.util.distill.DistillerOptions options) static @NotNull BadTypeErrorlamParam(@NotNull TyckState state, @NotNull Expr lamExpr, @NotNull AyaDocile paramType, @NotNull Term actualParamType) static @NotNull BadTypeErrorstatic @NotNull BadTypeErrorstatic @NotNull BadTypeErrorstatic @NotNull BadTypeError@NotNull TyckStatestate()返回state记录组件的值。static @NotNull BadTypeErrorstructAcc(@NotNull TyckState state, @NotNull Expr expr, @NotNull String fieldName, @NotNull Term actualType) static @NotNull BadTypeError@NotNull org.aya.pretty.doc.Docthing()返回thing记录组件的值。final StringtoString()返回此记录类的字符串表示形式。static @NotNull BadTypeError从接口继承的方法 org.aya.generic.ExprProblem
sourcePos从接口继承的方法 org.aya.util.reporter.Problem
brief, inlineHints, isError, toPrettyError
-
构造器详细资料
-
BadTypeError
public BadTypeError(@NotNull @NotNull Expr expr, @NotNull @NotNull Term actualType, @NotNull @NotNull org.aya.pretty.doc.Doc action, @NotNull @NotNull org.aya.pretty.doc.Doc thing, @NotNull @NotNull AyaDocile desired, @NotNull @NotNull TyckState state) 创建BadTypeError记录类的实例。- 参数:
expr-expr记录组件的值actualType-actualType记录组件的值action-action记录组件的值thing-thing记录组件的值desired-desired记录组件的值state-state记录组件的值
-
-
方法详细资料
-
describe
@NotNull public @NotNull org.aya.pretty.doc.Doc describe(@NotNull @NotNull org.aya.util.distill.DistillerOptions options) - 指定者:
describe在接口中org.aya.util.reporter.Problem
-
hint
@NotNull public @NotNull org.aya.pretty.doc.Doc hint(@NotNull @NotNull org.aya.util.distill.DistillerOptions options) - 指定者:
hint在接口中org.aya.util.reporter.Problem
-
pi
@NotNull public static @NotNull BadTypeError pi(@NotNull @NotNull TyckState state, @NotNull @NotNull Expr expr, @NotNull @NotNull Term actualType) -
sigmaAcc
@NotNull public static @NotNull BadTypeError sigmaAcc(@NotNull @NotNull TyckState state, @NotNull @NotNull Expr expr, int ix, @NotNull @NotNull Term actualType) -
sigmaCon
@NotNull public static @NotNull BadTypeError sigmaCon(@NotNull @NotNull TyckState state, @NotNull @NotNull Expr expr, @NotNull @NotNull Term actualType) -
structAcc
@NotNull public static @NotNull BadTypeError structAcc(@NotNull @NotNull TyckState state, @NotNull @NotNull Expr expr, @NotNull @NotNull String fieldName, @NotNull @NotNull Term actualType) -
structCon
@NotNull public static @NotNull BadTypeError structCon(@NotNull @NotNull TyckState state, @NotNull @NotNull Expr expr, @NotNull @NotNull Term actualType) -
univ
@NotNull public static @NotNull BadTypeError univ(@NotNull @NotNull TyckState state, @NotNull @NotNull Expr expr, @NotNull @NotNull Term actual) -
lamParam
@NotNull public static @NotNull BadTypeError lamParam(@NotNull @NotNull TyckState state, @NotNull @NotNull Expr lamExpr, @NotNull @NotNull AyaDocile paramType, @NotNull @NotNull Term actualParamType) -
partTy
@NotNull public static @NotNull BadTypeError partTy(@NotNull @NotNull TyckState state, @NotNull @NotNull Expr expr, @NotNull @NotNull Term actualType) -
toString
返回此记录类的字符串表示形式。此表示形式包含类的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 此记录类中的所有组件都使用Objects::equals(Object,Object)进行比较。 -
expr
返回expr记录组件的值。- 指定者:
expr在接口中ExprProblem- 返回:
expr记录组件的值
-
actualType
返回actualType记录组件的值。- 返回:
actualType记录组件的值
-
action
@NotNull public @NotNull org.aya.pretty.doc.Doc action()返回action记录组件的值。- 返回:
action记录组件的值
-
thing
@NotNull public @NotNull org.aya.pretty.doc.Doc thing()返回thing记录组件的值。- 返回:
thing记录组件的值
-
desired
返回desired记录组件的值。- 返回:
desired记录组件的值
-
state
返回state记录组件的值。- 返回:
state记录组件的值
-