java.lang.Object
java.lang.Record
org.aya.tyck.pat.TypedSubst
public record TypedSubst(@NotNull Subst map, @NotNull kala.collection.mutable.MutableMap<@NotNull AnyVar,@NotNull Term> type)
extends Record
TODO[hoshino]: move to another place
-
Constructor Summary
ConstructorsConstructorDescriptionTypedSubst(@NotNull Subst map, @NotNull kala.collection.mutable.MutableMap<@NotNull AnyVar, @NotNull Term> type) Creates an instance of aTypedSubstrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull TypedSubstaddDirectly(@NotNull AnyVar var, @NotNull Term term, @NotNull Term type) @NotNull TypedSubstaddDirectly(@NotNull TypedSubst subst) voidclear()@NotNull TypedSubstderive()final booleanIndicates whether some other object is "equal to" this one.@NotNull kala.control.Option<ExprTycker.Result>final inthashCode()Returns a hash code value for this object.voidinline()Please call this after inline all the patterns@NotNull Substmap()Returns the value of themaprecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
TypedSubst
public TypedSubst() -
TypedSubst
public TypedSubst(@NotNull @NotNull Subst map, @NotNull @NotNull kala.collection.mutable.MutableMap<@NotNull AnyVar, @NotNull Term> type) Creates an instance of aTypedSubstrecord class.- Parameters:
map- the value for themaprecord componenttype- the value for thetyperecord component
-
-
Method Details
-
addDirectly
@NotNull public @NotNull TypedSubst addDirectly(@NotNull @NotNull AnyVar var, @NotNull @NotNull Term term, @NotNull @NotNull Term type) -
addDirectly
-
getOption
@NotNull public @NotNull kala.control.Option<ExprTycker.Result> getOption(@NotNull @NotNull AnyVar var) -
inline
public void inline()Please call this after inline all the patterns -
derive
-
clear
public void clear() -
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). -
map
Returns the value of themaprecord component.- Returns:
- the value of the
maprecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-