Class

io.chymyst.jc.CommonMacros

OtherInputPatternF

Related Doc: package CommonMacros

Permalink

final case class OtherInputPatternF(matcher: scala.reflect.macros.Universe.Tree, guard: Option[scala.reflect.macros.Universe.Tree], vars: List[scala.reflect.macros.Universe.Ident]) extends InputPatternFlag with Product with Serializable

Nontrivial pattern matching expression that could contain unapply, destructuring, and pattern @ variables. For instance, if c is a molecule with values of type (Int, Option[Int]) then and example of nontrivial pattern match could be c( z@(x, Some(y)) ). In this example, we will have vars = List("z", "x", "y") and matcher = { case z@(x, Some(y)) => (z, x, y) }.

matcher

Tree of a partial function of type Any => Any.

guard

None if the pattern is irrefutable; Some(guard expression tree) if the pattern is not irrefutable and potentially requires a guard condition.

vars

List of pattern variables in the order of their appearance in the syntax tree.

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

Instance Constructors

  1. new OtherInputPatternF(matcher: scala.reflect.macros.Universe.Tree, guard: Option[scala.reflect.macros.Universe.Tree], vars: List[scala.reflect.macros.Universe.Ident])

    Permalink

    matcher

    Tree of a partial function of type Any => Any.

    guard

    None if the pattern is irrefutable; Some(guard expression tree) if the pattern is not irrefutable and potentially requires a guard condition.

    vars

    List of pattern variables in the order of their appearance in the syntax tree.

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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def containsVar(v: scala.reflect.macros.Universe.Ident): Boolean

    Permalink
    Definition Classes
    InputPatternFlag
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. val guard: Option[scala.reflect.macros.Universe.Tree]

    Permalink

    None if the pattern is irrefutable; Some(guard expression tree) if the pattern is not irrefutable and potentially requires a guard condition.

  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. val matcher: scala.reflect.macros.Universe.Tree

    Permalink

    Tree of a partial function of type Any => Any.

  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def needTraversing: Boolean

    Permalink

    Does this pattern contain a nontrivial syntax tree that could contain other molecules?

    Does this pattern contain a nontrivial syntax tree that could contain other molecules?

    returns

    true or false

    Definition Classes
    OtherInputPatternFInputPatternFlag
  15. def notReplyValue: Boolean

    Permalink
    Definition Classes
    InputPatternFlag
  16. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  18. def patternSha1(showCode: (scala.reflect.macros.Universe.Tree) ⇒ String, md: MessageDigest): String

    Permalink
    Definition Classes
    OtherInputPatternFInputPatternFlag
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. def varNames: List[scala.reflect.macros.Universe.Ident]

    Permalink
    Definition Classes
    OtherInputPatternFInputPatternFlag
  21. val vars: List[scala.reflect.macros.Universe.Ident]

    Permalink

    List of pattern variables in the order of their appearance in the syntax tree.

  22. final def wait(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. 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 InputPatternFlag

Inherited from AnyRef

Inherited from Any

Ungrouped