Packages

c

scala.reflect.api.Types

ConstantTypeExtractor

abstract class ConstantTypeExtractor extends AnyRef

An extractor class to create and pattern match with syntax ConstantType(constant) Here, constant is the constant value represented by the type.

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

Instance Constructors

  1. new ConstantTypeExtractor()

Abstract Value Members

  1. abstract def unapply(tpe: Universe.ConstantType): Option[Universe.Constant]

Deprecated Value Members

  1. def apply(value: Universe.Constant)(implicit token: Universe.CompatToken): Universe.ConstantType

    Annotations
    @deprecated
    Deprecated

    (Since version 2.11.0) use value.tpe or internal.constantType instead

    See also

    Internals.InternalApi.constantType