Packages

class ImmutableContext extends Context

Source
ImmutableContext.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ImmutableContext
  2. Context
  3. BabelSignature
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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

    Adds an element to the context.

    Adds an element to the context.

    If this is not a valid addition, then an exception is thrown.

    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
    ImmutableContextContext
  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 ->[B](y: B): (ImmutableContext, B)
    Implicit
    This member is added by an implicit conversion from ImmutableContext toArrowAssoc[ImmutableContext] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. 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
  9. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  10. 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
  11. 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
  12. 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
  13. 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
  14. 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
  15. def defaultTypeToI: Boolean
    Definition Classes
    ContextBabelSignature
  16. 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
  17. 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
  18. def ensuring(cond: (ImmutableContext) => Boolean, msg: => Any): ImmutableContext
    Implicit
    This member is added by an implicit conversion from ImmutableContext toEnsuring[ImmutableContext] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: (ImmutableContext) => Boolean): ImmutableContext
    Implicit
    This member is added by an implicit conversion from ImmutableContext toEnsuring[ImmutableContext] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. def ensuring(cond: Boolean, msg: => Any): ImmutableContext
    Implicit
    This member is added by an implicit conversion from ImmutableContext toEnsuring[ImmutableContext] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. def ensuring(cond: Boolean): ImmutableContext
    Implicit
    This member is added by an implicit conversion from ImmutableContext toEnsuring[ImmutableContext] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  22. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  24. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  25. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from ImmutableContext toStringFormat[ImmutableContext] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  26. 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
  27. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  28. 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
  29. 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
  30. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  31. 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
  32. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  33. 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
  34. 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
  35. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  36. 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
  37. 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
  38. 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
  39. def normalizer: Normalizer

    The context's normalizer.

    The context's normalizer.

    returns

    The context's normalizer.

    Definition Classes
    Context
  40. def notationsForConst(const: ConstName): List[Notation]
    Definition Classes
    ContextBabelSignature
  41. def notationsForToken(token: Token): Option[Notation]
    Definition Classes
    ContextBabelSignature
  42. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  43. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  44. 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
  45. 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
  46. 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
  47. val state: State

    Retrieves the context's current state.

    Retrieves the context's current state.

    returns

    The context's current state.

    Definition Classes
    ImmutableContextContext
  48. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  49. 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
    ImmutableContextContext
  50. 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
  51. def toString(): String
    Definition Classes
    Context → AnyRef → Any
  52. val 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
    ImmutableContextContext
  53. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  54. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  55. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  56. 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 ImmutableContext toany2stringadd[ImmutableContext] 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:
    (immutableContext: any2stringadd[ImmutableContext]).+(other)
    Definition Classes
    any2stringadd

Deprecated Value Members

  1. def [B](y: B): (ImmutableContext, B)
    Implicit
    This member is added by an implicit conversion from ImmutableContext toArrowAssoc[ImmutableContext] 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 Context

Inherited from BabelSignature

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromImmutableContext to any2stringadd[ImmutableContext]

Inherited by implicit conversion StringFormat fromImmutableContext to StringFormat[ImmutableContext]

Inherited by implicit conversion Ensuring fromImmutableContext to Ensuring[ImmutableContext]

Inherited by implicit conversion ArrowAssoc fromImmutableContext to ArrowAssoc[ImmutableContext]

Ungrouped