O object

Const

extends Object with Serializable

Literal constant values

Supertypes

Object, Serializable

Members

def 

unapply

[T] ( expr: Expr[T] ) ( implicit  qctx: QuoteContext ) : Option[T]

Matches expressions containing literal constant values and extracts the value. It may match expressions of type Boolean, Byte, Short, Int, Long, Float,...

Matches expressions containing literal constant values and extracts the value. It may match expressions of type Boolean, Byte, Short, Int, Long, Float, Double, Char, String, ClassTag, scala.Symbol, Null and Unit.

Usage:

(x: Expr[B]) match {
  case Const(value: B) => ...
}