scala.tools.nsc.matching

Patterns

trait Patterns extends TreeDSL

Patterns are wrappers for Trees with enhanced semantics.

Self Type
ExplicitOuter
Linear Supertypes
Known Subclasses
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Patterns
  2. TreeDSL
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by any2stringfmt
  3. by any2ArrowAssoc
  4. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. case class AlternativePattern(tree: Global.Alternative) extends transform.ExplicitOuter.Pattern with Product with Serializable

  2. case class ApplyIdentPattern(tree: Global.Apply) extends transform.ExplicitOuter.Pattern with transform.ExplicitOuter.ApplyPattern with transform.ExplicitOuter.NamePattern with Product with Serializable

  3. sealed trait ApplyPattern extends transform.ExplicitOuter.Pattern

  4. case class ApplySelectPattern(tree: Global.Apply) extends transform.ExplicitOuter.Pattern with transform.ExplicitOuter.ApplyPattern with transform.ExplicitOuter.SelectPattern with Product with Serializable

  5. case class ConstructorPattern(tree: Global.Apply) extends transform.ExplicitOuter.Pattern with transform.ExplicitOuter.ApplyPattern with transform.ExplicitOuter.NamePattern with Product with Serializable

  6. case class ExtractorPattern(tree: Global.UnApply) extends transform.ExplicitOuter.Pattern with transform.ExplicitOuter.UnapplyPattern with Product with Serializable

  7. case class ListExtractorPattern(tree: Global.UnApply, tpt: Global.Tree, elems: List[Global.Tree]) extends transform.ExplicitOuter.Pattern with transform.ExplicitOuter.UnapplyPattern with transform.ExplicitOuter.SequenceLikePattern with Product with Serializable

  8. case class LiteralPattern(tree: Global.Literal) extends transform.ExplicitOuter.Pattern with Product with Serializable

  9. sealed trait NamePattern extends transform.ExplicitOuter.Pattern

  10. case class ObjectPattern(tree: Global.Apply) extends transform.ExplicitOuter.Pattern with transform.ExplicitOuter.ApplyPattern with Product with Serializable

  11. sealed abstract class Pattern extends transform.ExplicitOuter.PatternBindingLogic

  12. type PatternMatch = ParallelMatching.MatchMatrix.PatternMatch

  13. sealed trait SelectPattern extends transform.ExplicitOuter.Pattern with transform.ExplicitOuter.NamePattern

    Some intermediate pattern classes with shared structure *

  14. trait SequenceLikePattern extends transform.ExplicitOuter.Pattern

  15. case class SequencePattern(tree: Global.ArrayValue) extends transform.ExplicitOuter.Pattern with transform.ExplicitOuter.SequenceLikePattern with Product with Serializable

  16. case class SimpleIdPattern(tree: Global.Ident) extends transform.ExplicitOuter.Pattern with transform.ExplicitOuter.NamePattern with Product with Serializable

  17. case class StableIdPattern(tree: Global.Select) extends transform.ExplicitOuter.Pattern with transform.ExplicitOuter.SelectPattern with Product with Serializable

  18. case class StarPattern(tree: Global.Star) extends transform.ExplicitOuter.Pattern with Product with Serializable

  19. case class ThisPattern(tree: Global.This) extends transform.ExplicitOuter.Pattern with transform.ExplicitOuter.NamePattern with Product with Serializable

  20. case class TuplePattern(tree: Global.Apply) extends transform.ExplicitOuter.Pattern with transform.ExplicitOuter.ApplyPattern with Product with Serializable

  21. case class TypedPattern(tree: Global.Typed) extends transform.ExplicitOuter.Pattern with Product with Serializable

  22. sealed trait UnapplyPattern extends transform.ExplicitOuter.Pattern

  23. case class VariablePattern(tree: Global.Ident) extends transform.ExplicitOuter.Pattern with transform.ExplicitOuter.NamePattern with Product with Serializable

  24. case class WildcardPattern() extends transform.ExplicitOuter.Pattern with Product with Serializable

Abstract Value Members

  1. abstract val global: Global

    Definition Classes
    TreeDSL

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from Patterns to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (Patterns, B)

    Implicit information
    This member is added by an implicit conversion from Patterns to ArrowAssoc[Patterns] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. object ApplyPattern

  9. object CODE

    Definition Classes
    TreeDSL
  10. def NilPattern: transform.ExplicitOuter.Pattern

  11. def NoPattern: transform.ExplicitOuter.WildcardPattern

  12. def NullPattern: transform.ExplicitOuter.LiteralPattern

  13. object Pattern

  14. object UnapplyParamType

    * Extractors **

  15. object UnapplyPattern

  16. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  17. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. def emptyPatterns(i: Int): List[transform.ExplicitOuter.Pattern]

  19. def emptyTrees(i: Int): List[Global.Tree]

  20. def ensuring(cond: (Patterns) ⇒ Boolean, msg: ⇒ Any): Patterns

    Implicit information
    This member is added by an implicit conversion from Patterns to Ensuring[Patterns] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. def ensuring(cond: (Patterns) ⇒ Boolean): Patterns

    Implicit information
    This member is added by an implicit conversion from Patterns to Ensuring[Patterns] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  22. def ensuring(cond: Boolean, msg: ⇒ Any): Patterns

    Implicit information
    This member is added by an implicit conversion from Patterns to Ensuring[Patterns] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  23. def ensuring(cond: Boolean): Patterns

    Implicit information
    This member is added by an implicit conversion from Patterns to Ensuring[Patterns] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  24. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  26. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from Patterns to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  28. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  29. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  30. final def isInstanceOf[T0]: Boolean

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

    Definition Classes
    AnyRef
  32. final def notify(): Unit

    Definition Classes
    AnyRef
  33. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  34. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  35. def toString(): String

    Definition Classes
    AnyRef → Any
  36. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. def [B](y: B): (Patterns, B)

    Implicit information
    This member is added by an implicit conversion from Patterns to ArrowAssoc[Patterns] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from Patterns to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (patterns: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from Patterns to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (patterns: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: Patterns

    Implicit information
    This member is added by an implicit conversion from Patterns to ArrowAssoc[Patterns] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (patterns: ArrowAssoc[Patterns]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: Patterns

    Implicit information
    This member is added by an implicit conversion from Patterns to Ensuring[Patterns] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (patterns: Ensuring[Patterns]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from TreeDSL

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from Patterns to StringAdd

Inherited by implicit conversion any2stringfmt from Patterns to StringFormat

Inherited by implicit conversion any2ArrowAssoc from Patterns to ArrowAssoc[Patterns]

Inherited by implicit conversion any2Ensuring from Patterns to Ensuring[Patterns]

Ungrouped