Class

io.chymyst.ch

MatchE

Related Doc: package ch

Permalink

final case class MatchE(term: TermExpr, cases: List[TermExpr]) extends TermExpr with Product with Serializable

Match a disjunction term of type A1 + A2 + ... + An against a list of n functions. The type of the result of each function must be the same, and will be the type of this term. This represents code of the form

term match {
  case a1: A1 ⇒ ...
  case a2: A2 ⇒ ...
  ...
  case an: An ⇒ ...
}
term

Term to be matched. Must be of disjunction type.

cases

List of "case functions" of types A1 ⇒ Z, ..., An ⇒ Z. Each "case function" must be a function of the form CurriedE(PropE(_) :: _, _), that is, with at least one argument.

Linear Supertypes
Serializable, Serializable, Product, Equals, TermExpr, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MatchE
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. TermExpr
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MatchE(term: TermExpr, cases: List[TermExpr])

    Permalink

    term

    Term to be matched. Must be of disjunction type.

    cases

    List of "case functions" of types A1 ⇒ Z, ..., An ⇒ Z. Each "case function" must be a function of the form CurriedE(PropE(_) :: _, _), that is, with at least one argument.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def accessor(index: Int): String

    Permalink
    Definition Classes
    TermExpr
  5. def apply(y: TermExpr): TermExpr

    Permalink
    Definition Classes
    TermExpr
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. val cases: List[TermExpr]

    Permalink

    List of "case functions" of types A1 ⇒ Z, ..., An ⇒ Z.

    List of "case functions" of types A1 ⇒ Z, ..., An ⇒ Z. Each "case function" must be a function of the form CurriedE(PropE(_) :: _, _), that is, with at least one argument.

  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equiv(y: TermExpr): Boolean

    Permalink
    Definition Classes
    TermExpr
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. lazy val freeVars: Seq[String]

    Permalink
    Definition Classes
    TermExpr
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def informationLossScore: (Unit, Int, Double, Double, Int, Int)

    Permalink
    Definition Classes
    TermExpr
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. def prettyPrint: String

    Permalink
    Definition Classes
    TermExpr
  20. def prettyRename: TermExpr

    Permalink
    Definition Classes
    TermExpr
  21. def renameAllVars(oldAndNewNames: Map[String, String]): TermExpr

    Permalink
    Definition Classes
    TermExpr
  22. def renameAllVars(oldNames: Seq[String], newNames: Seq[String]): TermExpr

    Permalink
    Definition Classes
    TermExpr
  23. def simplify: TermExpr

    Permalink
    Definition Classes
    TermExpr
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def tExpr: TypeExpr

    Permalink
    Definition Classes
    MatchETermExpr
  26. val term: TermExpr

    Permalink

    Term to be matched.

    Term to be matched. Must be of disjunction type.

  27. lazy val toString: String

    Permalink
    Definition Classes
    TermExpr → AnyRef → Any
  28. lazy val usedVars: Seq[String]

    Permalink
    Definition Classes
    TermExpr
  29. def varCount(varName: String): Int

    Permalink
    Definition Classes
    TermExpr
  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from TermExpr

Inherited from AnyRef

Inherited from Any

Ungrouped