Package hydra.error.checking
Class CheckingError
- java.lang.Object
-
- hydra.error.checking.CheckingError
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<CheckingError>
- Direct Known Subclasses:
CheckingError.IncorrectUnification,CheckingError.NotAForallType,CheckingError.NotAFunctionType,CheckingError.Other,CheckingError.TypeArityMismatch,CheckingError.TypeMismatch,CheckingError.UnboundTypeVariables,CheckingError.UndefinedTermVariable,CheckingError.UnequalTypes,CheckingError.UnsupportedTermVariant,CheckingError.UntypedLambda,CheckingError.UntypedLetBinding,CheckingError.UntypedTermVariable
public abstract class CheckingError extends java.lang.Object implements java.io.Serializable, java.lang.Comparable<CheckingError>
An error that occurred during type checking- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCheckingError.IncorrectUnificationA post-unification consistency check failurestatic classCheckingError.NotAForallTypeA type that is not a forall type when one was expectedstatic classCheckingError.NotAFunctionTypeA type that is not a function type when one was expectedstatic classCheckingError.OtherA generic checking errorstatic interfaceCheckingError.PartialVisitor<R>Partial visitor overCheckingErrorwith a defaultCheckingError.PartialVisitor.otherwise(hydra.error.checking.CheckingError)branch.static classCheckingError.TypeArityMismatchA type constructor applied to the wrong number of argumentsstatic classCheckingError.TypeMismatchA type mismatch between expected and actual typesstatic classCheckingError.UnboundTypeVariablesType variables that are not bound in scopestatic classCheckingError.UndefinedTermVariableA reference to a term variable that is not bound in scope, encountered during checkingstatic classCheckingError.UnequalTypesMultiple types that should be equal but are notstatic classCheckingError.UnsupportedTermVariantA term variant that the type checker does not supportstatic classCheckingError.UntypedLambdaA lambda expression without a type annotation on its parameterstatic classCheckingError.UntypedLetBindingA let binding without a type annotationstatic classCheckingError.UntypedTermVariableA reference to a term variable whose type is not known, encountered during checkingstatic interfaceCheckingError.Visitor<R>Visitor overCheckingError.
-
Field Summary
Fields Modifier and Type Field Description static NameINCORRECT_UNIFICATIONName of thehydra.error.checking.CheckingError.incorrectUnificationfield.static NameNOT_A_FORALL_TYPEName of thehydra.error.checking.CheckingError.notAForallTypefield.static NameNOT_A_FUNCTION_TYPEName of thehydra.error.checking.CheckingError.notAFunctionTypefield.static NameOTHERName of thehydra.error.checking.CheckingError.otherfield.static NameTYPE_Name of thehydra.error.checking.CheckingErrortype.static NameTYPE_ARITY_MISMATCHName of thehydra.error.checking.CheckingError.typeArityMismatchfield.static NameTYPE_MISMATCHName of thehydra.error.checking.CheckingError.typeMismatchfield.static NameUNBOUND_TYPE_VARIABLESName of thehydra.error.checking.CheckingError.unboundTypeVariablesfield.static NameUNDEFINED_TERM_VARIABLEName of thehydra.error.checking.CheckingError.undefinedTermVariablefield.static NameUNEQUAL_TYPESName of thehydra.error.checking.CheckingError.unequalTypesfield.static NameUNSUPPORTED_TERM_VARIANTName of thehydra.error.checking.CheckingError.unsupportedTermVariantfield.static NameUNTYPED_LAMBDAName of thehydra.error.checking.CheckingError.untypedLambdafield.static NameUNTYPED_LET_BINDINGName of thehydra.error.checking.CheckingError.untypedLetBindingfield.static NameUNTYPED_TERM_VARIABLEName of thehydra.error.checking.CheckingError.untypedTermVariablefield.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract <R> Raccept(CheckingError.Visitor<R> visitor)Dispatch tovisitor.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thehydra.error.checking.CheckingErrortype.
-
INCORRECT_UNIFICATION
public static final Name INCORRECT_UNIFICATION
Name of thehydra.error.checking.CheckingError.incorrectUnificationfield.
-
NOT_A_FORALL_TYPE
public static final Name NOT_A_FORALL_TYPE
Name of thehydra.error.checking.CheckingError.notAForallTypefield.
-
NOT_A_FUNCTION_TYPE
public static final Name NOT_A_FUNCTION_TYPE
Name of thehydra.error.checking.CheckingError.notAFunctionTypefield.
-
OTHER
public static final Name OTHER
Name of thehydra.error.checking.CheckingError.otherfield.
-
TYPE_ARITY_MISMATCH
public static final Name TYPE_ARITY_MISMATCH
Name of thehydra.error.checking.CheckingError.typeArityMismatchfield.
-
TYPE_MISMATCH
public static final Name TYPE_MISMATCH
Name of thehydra.error.checking.CheckingError.typeMismatchfield.
-
UNBOUND_TYPE_VARIABLES
public static final Name UNBOUND_TYPE_VARIABLES
Name of thehydra.error.checking.CheckingError.unboundTypeVariablesfield.
-
UNDEFINED_TERM_VARIABLE
public static final Name UNDEFINED_TERM_VARIABLE
Name of thehydra.error.checking.CheckingError.undefinedTermVariablefield.
-
UNEQUAL_TYPES
public static final Name UNEQUAL_TYPES
Name of thehydra.error.checking.CheckingError.unequalTypesfield.
-
UNSUPPORTED_TERM_VARIANT
public static final Name UNSUPPORTED_TERM_VARIANT
Name of thehydra.error.checking.CheckingError.unsupportedTermVariantfield.
-
UNTYPED_LAMBDA
public static final Name UNTYPED_LAMBDA
Name of thehydra.error.checking.CheckingError.untypedLambdafield.
-
UNTYPED_LET_BINDING
public static final Name UNTYPED_LET_BINDING
Name of thehydra.error.checking.CheckingError.untypedLetBindingfield.
-
UNTYPED_TERM_VARIABLE
public static final Name UNTYPED_TERM_VARIABLE
Name of thehydra.error.checking.CheckingError.untypedTermVariablefield.
-
-
Method Detail
-
accept
public abstract <R> R accept(CheckingError.Visitor<R> visitor)
Dispatch tovisitor.
-
-