A factory method that produces Constant
instances.
Notice that not any value can be passed to a constant: it must be either a primitive, a String
, a type or a symbol. See the Constant
class for more information.
© 2002-2019 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://www.scala-lang.org/api/2.12.9/scala-reflect/scala/reflect/api/Constants$ConstantExtractor.html
An extractor class to create and pattern match with syntax
Constant(value)
wherevalue
is the Scala value of the constant.