StringConstantModule

scala.quoted.Quotes.reflectModule.StringConstantModule

Methods of the module object val StringConstant.

Attributes

Source
Quotes.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Quotes.this.reflectModule.this.StringConstant.type

Members list

Value members

Abstract methods

Creates a constant String value

Creates a constant String value

Value parameters

x

the String value

Attributes

Returns

a StringConstant wrapping x

Source
Quotes.scala
def unapply(constant: Quotes.this.reflectModule.this.StringConstant): Some[String]

Match String value constant and extract its value.

Match String value constant and extract its value.

Value parameters

constant

the StringConstant to match against

Attributes

Returns

Some containing the wrapped String value

Source
Quotes.scala