java.lang.Object
java.lang.Record
org.aya.tyck.error.LiteralError.BadLitPattern
- 所有已实现的接口:
LiteralError,TyckError,org.aya.util.reporter.Problem
- 封闭接口:
LiteralError
public static record LiteralError.BadLitPattern(@NotNull org.aya.util.error.SourcePos sourcePos, int integer, @NotNull Term type)
extends Record
implements LiteralError
-
嵌套类概要
从接口继承的嵌套类/接口 org.aya.tyck.error.LiteralError
LiteralError.AmbiguousLit, LiteralError.BadLitPattern从接口继承的嵌套类/接口 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 -
构造器概要
构造器构造器说明BadLitPattern(@NotNull org.aya.util.error.SourcePos sourcePos, int integer, @NotNull Term type) 创建BadLitPattern记录类的实例。 -
方法概要
修饰符和类型方法说明@NotNull org.aya.pretty.doc.Docdescribe(@NotNull org.aya.util.distill.DistillerOptions options) final boolean指示某个其他对象是否“等于”此对象。final inthashCode()返回此对象的哈希代码值。intinteger()返回integer记录组件的值。@NotNull org.aya.util.error.SourcePos返回sourcePos记录组件的值。final StringtoString()返回此记录类的字符串表示形式。@NotNull Termtype()返回type记录组件的值。从接口继承的方法 org.aya.util.reporter.Problem
brief, hint, inlineHints, isError, toPrettyError
-
构造器详细资料
-
BadLitPattern
public BadLitPattern(@NotNull @NotNull org.aya.util.error.SourcePos sourcePos, int integer, @NotNull @NotNull Term type) 创建BadLitPattern记录类的实例。- 参数:
sourcePos-sourcePos记录组件的值integer-integer记录组件的值type-type记录组件的值
-
-
方法详细资料
-
describe
@NotNull public @NotNull org.aya.pretty.doc.Doc describe(@NotNull @NotNull org.aya.util.distill.DistillerOptions options) - 指定者:
describe在接口中org.aya.util.reporter.Problem
-
toString
返回此记录类的字符串表示形式。此表示形式包含类的名称,后跟每个记录组件的名称和值。 -
hashCode
public final int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 使用Objects::equals(Object,Object)对参考组件进行比较;使用 '==' 对基元组件进行比较 -
sourcePos
@NotNull public @NotNull org.aya.util.error.SourcePos sourcePos()返回sourcePos记录组件的值。- 指定者:
sourcePos在接口中org.aya.util.reporter.Problem- 返回:
sourcePos记录组件的值
-
integer
public int integer()返回integer记录组件的值。- 返回:
integer记录组件的值
-
type
返回type记录组件的值。- 返回:
type记录组件的值
-