Packages

class MutableContext extends Context with ReadOnlyMutableContext with WriteOnlyMutableContext

Source
MutableContext.scala
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MutableContext
  2. WriteOnlyMutableContext
  3. ReadOnlyMutableContext
  4. Context
  5. BabelSignature
  6. AnyRef
  7. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new MutableContext(ctx_: ImmutableContext)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(update: Update): ImmutableContext

    Applies an update to this context.

    Applies an update to this context.

    update

    The update to be applied to this context.

    returns

    An immutable context obtained by converting this context to an immutable context and by applying the update to that context.

    Definition Classes
    Context
  4. def ++(updates: Iterable[Update]): ImmutableContext

    Applies several updates to the context.

    Applies several updates to the context.

    updates

    The updates to be applied to the context.

    returns

    An immutable context obtained by applying iteratively applying the updates from left to right.

    Definition Classes
    Context
  5. def ++=(updates: Iterable[Update]): Unit
  6. def +=(update: Update): Unit
  7. def ->[B](y: B): (MutableContext, B)
    Implicit
    This member is added by an implicit conversion from MutableContext toArrowAssoc[MutableContext] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  8. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def addDefinition(by: Expr, name: => String = newNameGenerator.freshWithIndex( "D" ), reuse: Boolean = true): Const
  10. def addSkolemSym(defn: Expr, name: => String = newNameGenerator.freshWithIndex( "s" ), reuse: Boolean = true): Const
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def check[T](t: T)(implicit arg0: Checkable[T]): Unit

    Checks an object with respect to this context.

    Checks an object with respect to this context.

    This method checks whether a given object is correctly constructed according to this context. For example for a type to check against a context the base types occurring in that type must all be declared in the context.

    T

    The type of object to be checked.

    t

    The object to be checked.

    Definition Classes
    Context
  13. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  14. def conditionalReductionRules: Iterable[ConditionalReductionRule]

    Retrieves all expression-level conditional reduction rules.

    Retrieves all expression-level conditional reduction rules.

    returns

    Returns all the expression-level conditional reduction rules currently stored in this context.

    Definition Classes
    Context
  15. def constant(name: String, params: List[Ty]): Option[Const]

    Retrieves constants by name and type parameters.

    Retrieves constants by name and type parameters.

    name

    The name for which a constant is to be looked up.

    params

    The type parameters for which a constant is to be looked up.

    returns

    Returns Some ( c ) if the context currently contains a constant c with name name and type parameters params. Otherwise None is returned.

    Definition Classes
    Context
  16. def constant(name: String): Option[Const]

    Retrieves constants by name.

    Retrieves constants by name.

    name

    The name for which a constant is to be looked up.

    returns

    Returns Some( c ) where c.name equals name if the context currently contains such a constant c, otherwise None is retured.

    Definition Classes
    Context
  17. def constants: Iterable[Const]

    Retrieves all the constants defined in this context.

    Retrieves all the constants defined in this context.

    returns

    A list of all the constants that are currently defined in this context.

    Definition Classes
    Context
  18. def contains(defn: Definition): Boolean

    Checks whether the context contains a given definition.

    Checks whether the context contains a given definition.

    defn

    The definition that is to be checked.

    returns

    Returns true if the given definition is an instance of a definition stored in this context.

    Definition Classes
    Context
  19. def ctx: ImmutableContext
  20. def ctx_=(newCtx: ImmutableContext): Unit
  21. def defaultTypeToI: Boolean
    Definition Classes
    ContextBabelSignature
  22. def definition(c: Const): Option[Expr]

    Looks up the definition of a constant.

    Looks up the definition of a constant.

    c

    The constant with type arguments args whose definition is to be looked up.

    returns

    If the constant c has a definition, then Some( definition ) is returned where definition is obtained from the definition of c by instantiating the type variables according to args.

    Definition Classes
    Context
  23. def definitions: Map[Const, Expr]

    Retrieves all the definitions of this context.

    Retrieves all the definitions of this context.

    returns

    The current definitions saved by this context i.e. a map associating constants with expressions.

    Definition Classes
    Context
  24. def ensuring(cond: (MutableContext) => Boolean, msg: => Any): MutableContext
    Implicit
    This member is added by an implicit conversion from MutableContext toEnsuring[MutableContext] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  25. def ensuring(cond: (MutableContext) => Boolean): MutableContext
    Implicit
    This member is added by an implicit conversion from MutableContext toEnsuring[MutableContext] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  26. def ensuring(cond: Boolean, msg: => Any): MutableContext
    Implicit
    This member is added by an implicit conversion from MutableContext toEnsuring[MutableContext] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  27. def ensuring(cond: Boolean): MutableContext
    Implicit
    This member is added by an implicit conversion from MutableContext toEnsuring[MutableContext] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  28. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  30. def get[T](implicit arg0: Facet[T]): T

    Retrieves a facet of this context.

    Retrieves a facet of this context.

    T

    The facet's type.

    returns

    Returns the facet associated with the given type. If this facet is not present yet, it is initialized and its initial value is returned.

    Definition Classes
    Context
  31. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  32. def getConstructors(ty: TBase): Option[Vector[Const]]

    Looks up inductive type constructors for a given base type.

    Looks up inductive type constructors for a given base type.

    ty

    The base type whose type constructors are to be looked up.

    returns

    Returns Some( ctrs ) if ty is an inductive type having constructors ctrs, otherwise None is returned.

    Definition Classes
    Context
  33. def getConstructors(ty: Ty): Option[Vector[Const]]

    Retrieves inductive type constructors for a given type.

    Retrieves inductive type constructors for a given type.

    ty

    The type whose inductive type constructors are to be looked up.

    returns

    Returns Some( ctrs ) if ty is an inductive type having constructors ctrs, otherwise None is returned.

    Definition Classes
    Context
  34. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  35. def isDefEq(a: Expr, b: Expr): Boolean

    Checks if two expressions normalize to the same expression.

    Checks if two expressions normalize to the same expression.

    a

    An expression to be checked.

    b

    An expression to be checked.

    returns

    Returns true if and only if a and b normalize to the same expression in this context.

    Definition Classes
    Context
  36. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  37. def isType(ty: TBase): Boolean

    Checks whether the given base type is defined in this context.

    Checks whether the given base type is defined in this context.

    ty

    The base type that is to be checked.

    returns

    true if ty is defined in this context, false otherwise.

    Definition Classes
    Context
  38. def names: Iterable[String]

    Retrieves all the names declared in this context.

    Retrieves all the names declared in this context.

    returns

    All the names currently declared in this context.

    Definition Classes
    Context
  39. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  40. def newMutable: MutableContext

    Converts this context into a mutable context.

    Converts this context into a mutable context.

    returns

    A new mutable context that equals this context at the time of calling this method.

    Definition Classes
    Context
  41. def newNameGenerator: NameGenerator

    Creates a new name generator for this context.

    Creates a new name generator for this context.

    returns

    A new name generator that avoids all the names currently defined in the context.

    Definition Classes
    Context
  42. def normalize(expression: Expr): Expr

    Normalizes an expression.

    Normalizes an expression.

    expression

    The expression to be normalized.

    returns

    An expression obtained by normalizing expression according to the reduction rules currently stored in this context.

    Definition Classes
    Context
  43. def normalizer: Normalizer

    The context's normalizer.

    The context's normalizer.

    returns

    The context's normalizer.

    Definition Classes
    Context
  44. def notationsForConst(const: ConstName): List[Notation]
    Definition Classes
    ContextBabelSignature
  45. def notationsForToken(token: Token): Option[Notation]
    Definition Classes
    ContextBabelSignature
  46. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  47. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  48. def reductionRules: Iterable[ReductionRule]

    Retrieves all expression-level reduction rules.

    Retrieves all expression-level reduction rules.

    returns

    Returns all the expression-level reduction rules currently stored in this context.

    Definition Classes
    Context
  49. def signatureLookup(s: String): VarConst

    Decides whether the symbol with the given identifier should be a variable or constant, and what its type should be.

    Decides whether the symbol with the given identifier should be a variable or constant, and what its type should be.

    s

    The name of the symbol.

    returns

    Either IsVar(type) or IsConst(type).

    Definition Classes
    ContextBabelSignature
  50. def skolemDef(skSym: Const): Option[Expr]

    Retrieves the skolem definition of a constant.

    Retrieves the skolem definition of a constant.

    skSym

    The constant whose definition is to be looked up.

    returns

    Returns Some(definition) if the constant skSym is a skolem function with definition definition.

    Definition Classes
    Context
  51. def state: State

    Retrieves the context's current state.

    Retrieves the context's current state.

    returns

    The context's current state.

    Definition Classes
    MutableContextContext
  52. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  53. def toImmutable: ImmutableContext

    Converts this context into an immutable context.

    Converts this context into an immutable context.

    returns

    A new immutable context that equals this context at the time of calling this method.

    Definition Classes
    MutableContextContext
  54. def toReadonly: ReadOnlyMutableContext

    Converts this context to a read-only context.

    Converts this context to a read-only context.

    returns

    A new read-only context that is equal to this context at the time of invoking this method.

    Definition Classes
    Context
  55. def toString(): String
    Definition Classes
    MutableContextContext → AnyRef → Any
  56. def updates: List[Update]

    Retrieves the updates that have been applied to this context.

    Retrieves the updates that have been applied to this context.

    returns

    A list of updates with newer updates occurring before older ones.

    Definition Classes
    MutableContextContext
  57. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  58. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  59. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  60. def whnf(expression: Expr): Expr

    Reduces an expression to WHNF.

    Reduces an expression to WHNF.

    expression

    The expression to be reduced to WHNF.

    returns

    An expression reduced to WHNF according to the reduction rules currently stored in this context.

    Definition Classes
    Context

Shadowed Implicit Value Members

  1. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from MutableContext toany2stringadd[MutableContext] performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (mutableContext: any2stringadd[MutableContext]).+(other)
    Definition Classes
    any2stringadd

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated
  2. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from MutableContext toStringFormat[MutableContext] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  3. def [B](y: B): (MutableContext, B)
    Implicit
    This member is added by an implicit conversion from MutableContext toArrowAssoc[MutableContext] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from ReadOnlyMutableContext

Inherited from Context

Inherited from BabelSignature

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromMutableContext to any2stringadd[MutableContext]

Inherited by implicit conversion StringFormat fromMutableContext to StringFormat[MutableContext]

Inherited by implicit conversion Ensuring fromMutableContext to Ensuring[MutableContext]

Inherited by implicit conversion ArrowAssoc fromMutableContext to ArrowAssoc[MutableContext]

Ungrouped