java.lang.Object
java.lang.Record
org.aya.tyck.error.BadTypeError
- All Implemented Interfaces:
ExprProblem,TyckError,org.aya.util.reporter.Problem
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aya.util.reporter.Problem
org.aya.util.reporter.Problem.Severity, org.aya.util.reporter.Problem.Stage -
Field Summary
Fields inherited from interface org.aya.util.reporter.Problem
ERROR, NOTE, TEXT -
Constructor Summary
ConstructorsConstructorDescriptionBadTypeError(@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) Creates an instance of aBadTypeErrorrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull org.aya.pretty.doc.Docaction()Returns the value of theactionrecord component.@NotNull TermReturns the value of theactualTyperecord component.@NotNull org.aya.pretty.doc.Docdescribe(@NotNull org.aya.util.distill.DistillerOptions options) @NotNull AyaDociledesired()Returns the value of thedesiredrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotNull Exprexpr()Returns the value of theexprrecord component.final inthashCode()Returns a hash code value for this object.@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 BadTypeErrorprojPropStruct(@NotNull TyckState state, @NotNull Expr expr, @NotNull String fieldName, @NotNull Term actualType) static @NotNull BadTypeErrorstatic @NotNull BadTypeError@NotNull TyckStatestate()Returns the value of thestaterecord component.static @NotNull BadTypeErrorstructAcc(@NotNull TyckState state, @NotNull Expr expr, @NotNull String fieldName, @NotNull Term actualType) static @NotNull BadTypeError@NotNull org.aya.pretty.doc.Docthing()Returns the value of thethingrecord component.final StringtoString()Returns a string representation of this record class.static @NotNull BadTypeErrorMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aya.generic.ExprProblem
sourcePosMethods inherited from interface org.aya.util.reporter.Problem
brief, inlineHints, isError, toPrettyError
-
Constructor Details
-
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) Creates an instance of aBadTypeErrorrecord class.- Parameters:
expr- the value for theexprrecord componentactualType- the value for theactualTyperecord componentaction- the value for theactionrecord componentthing- the value for thethingrecord componentdesired- the value for thedesiredrecord componentstate- the value for thestaterecord component
-
-
Method Details
-
describe
@NotNull public @NotNull org.aya.pretty.doc.Doc describe(@NotNull @NotNull org.aya.util.distill.DistillerOptions options) - Specified by:
describein interfaceorg.aya.util.reporter.Problem
-
hint
@NotNull public @NotNull org.aya.pretty.doc.Doc hint(@NotNull @NotNull org.aya.util.distill.DistillerOptions options) - Specified by:
hintin interfaceorg.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) -
projProp
@NotNull public static @NotNull BadTypeError projProp(@NotNull @NotNull TyckState state, @NotNull @NotNull Expr expr, int ix, @NotNull @NotNull Term type) -
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) -
projPropStruct
@NotNull public static @NotNull BadTypeError projPropStruct(@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
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
expr
Returns the value of theexprrecord component.- Specified by:
exprin interfaceExprProblem- Returns:
- the value of the
exprrecord component
-
actualType
Returns the value of theactualTyperecord component.- Returns:
- the value of the
actualTyperecord component
-
action
@NotNull public @NotNull org.aya.pretty.doc.Doc action()Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-
thing
@NotNull public @NotNull org.aya.pretty.doc.Doc thing()Returns the value of thethingrecord component.- Returns:
- the value of the
thingrecord component
-
desired
Returns the value of thedesiredrecord component.- Returns:
- the value of the
desiredrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-