scala.tools.nsc.matching.Patterns

LiteralPattern

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

Source
Patterns.scala
Linear Supertypes
Serializable, java.io.Serializable, Product, Equals, transform.ExplicitOuter.Pattern, transform.ExplicitOuter.PatternBindingLogic, AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. LiteralPattern
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Pattern
  7. PatternBindingLogic
  8. AnyRef
  9. 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

Instance Constructors

  1. new LiteralPattern(tree: Global.Literal)

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 transform.ExplicitOuter.LiteralPattern to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (transform.ExplicitOuter.LiteralPattern, B)

    Implicit information
    This member is added by an implicit conversion from transform.ExplicitOuter.LiteralPattern to ArrowAssoc[transform.ExplicitOuter.LiteralPattern] 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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def boundTree: Global.Tree

    Definition Classes
    PatternBindingLogic
  10. def boundVariables: List[Global.Symbol]

    Definition Classes
    PatternBindingLogic
  11. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  12. lazy val const: Global.Constant

  13. def covers(sym: Global.Symbol): Boolean

    Definition Classes
    Pattern
  14. def description: String

    Definition Classes
    LiteralPatternPattern
  15. def dummies: List[transform.ExplicitOuter.Pattern]

    Definition Classes
    Pattern
  16. def ensuring(cond: (transform.ExplicitOuter.LiteralPattern) ⇒ Boolean, msg: ⇒ Any): transform.ExplicitOuter.LiteralPattern

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

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

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

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

    Definition Classes
    AnyRef
  21. def equals(other: Any): Boolean

    Standard methods *

    Standard methods *

    Definition Classes
    Pattern → AnyRef → Any
  22. def equalsCheck: Global.Type

    Definition Classes
    Pattern
  23. def finalize(): Unit

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

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

    Definition Classes
    AnyRef → Any
  26. def hasStar: Boolean

    Definition Classes
    Pattern
  27. def hashCode(): Int

    Definition Classes
    Pattern → AnyRef → Any
  28. def intValue: Int

  29. def isCaseClass: Boolean

    Definition Classes
    Pattern
  30. def isDefault: Boolean

    Definition Classes
    Pattern
  31. def isEmpty: Boolean

    Definition Classes
    Pattern
  32. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  33. def isModule: Boolean

    Definition Classes
    Pattern
  34. def isObject: Boolean

    Definition Classes
    Pattern
  35. def isSwitchable: Boolean

  36. def kindString: String

    Definition Classes
    Pattern
  37. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  38. def necessaryType: Global.Type

    Definition Classes
    Pattern
  39. def newMatchesPattern(sym: Global.Symbol, pattp: Global.Type): Boolean

    Definition Classes
    Pattern
  40. final def notify(): Unit

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

    Definition Classes
    AnyRef
  42. def rebindTo(t: Global.Tree): transform.ExplicitOuter.Pattern

    Definition Classes
    PatternBindingLogic
  43. def rebindToEmpty(tpe: Global.Type): transform.ExplicitOuter.Pattern

    Definition Classes
    PatternBindingLogic
  44. def rebindToEqualsCheck(): transform.ExplicitOuter.Pattern

    Definition Classes
    PatternBindingLogic
  45. def rebindToObjectCheck(): transform.ExplicitOuter.Pattern

    Definition Classes
    PatternBindingLogic
  46. def rebindToType(tpe: Global.Type, ascription: Global.Type = null): transform.ExplicitOuter.Pattern

    Definition Classes
    PatternBindingLogic
  47. def setBound(x: Global.Bind): transform.ExplicitOuter.Pattern

    Definition Classes
    PatternBindingLogic
  48. def setType(tpe: Global.Type): LiteralPattern.this.type

    Definition Classes
    Pattern
  49. def simplify(pv: transform.ExplicitOuter.PatternVar): transform.ExplicitOuter.Pattern

    Definition Classes
    Pattern
  50. def subpatterns(pm: ParallelMatching.MatchMatrix.PatternMatch): List[transform.ExplicitOuter.Pattern]

    Definition Classes
    Pattern
  51. def subpatternsForVars: List[transform.ExplicitOuter.Pattern]

    Definition Classes
    PatternBindingLogic
  52. def sufficientType: Global.Type

    Definition Classes
    Pattern
  53. def sym: Global.Symbol

    Definition Classes
    Pattern
  54. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  55. final def toString(): String

    Definition Classes
    Pattern → AnyRef → Any
  56. def toTypeString(): String

    Definition Classes
    Pattern
  57. def tpe: Global.Type

    Definition Classes
    Pattern
  58. val tree: Global.Literal

    Definition Classes
    LiteralPatternPattern
  59. lazy val value: Any

  60. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  63. def [B](y: B): (transform.ExplicitOuter.LiteralPattern, B)

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

Shadowed Implict Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from transform.ExplicitOuter.LiteralPattern 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:
    (literalPattern: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from transform.ExplicitOuter.LiteralPattern 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:
    (literalPattern: StringFormat).self
    Definition Classes
    StringFormat

Deprecated Value Members

  1. def x: transform.ExplicitOuter.LiteralPattern

    Implicit information
    This member is added by an implicit conversion from transform.ExplicitOuter.LiteralPattern to ArrowAssoc[transform.ExplicitOuter.LiteralPattern] 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:
    (literalPattern: ArrowAssoc[transform.ExplicitOuter.LiteralPattern]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: transform.ExplicitOuter.LiteralPattern

    Implicit information
    This member is added by an implicit conversion from transform.ExplicitOuter.LiteralPattern to Ensuring[transform.ExplicitOuter.LiteralPattern] 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:
    (literalPattern: Ensuring[transform.ExplicitOuter.LiteralPattern]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from Serializable

Inherited from java.io.Serializable

Inherited from Product

Inherited from Equals

Inherited from transform.ExplicitOuter.Pattern

Inherited from transform.ExplicitOuter.PatternBindingLogic

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from transform.ExplicitOuter.LiteralPattern to StringAdd

Inherited by implicit conversion any2stringfmt from transform.ExplicitOuter.LiteralPattern to StringFormat

Inherited by implicit conversion any2ArrowAssoc from transform.ExplicitOuter.LiteralPattern to ArrowAssoc[transform.ExplicitOuter.LiteralPattern]

Inherited by implicit conversion any2Ensuring from transform.ExplicitOuter.LiteralPattern to Ensuring[transform.ExplicitOuter.LiteralPattern]

Ungrouped