ClassOfConstantModule

scala.quoted.Quotes.reflectModule.ClassOfConstantModule

Methods of the module object val ClassOf.

Attributes

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

Members list

Value members

Abstract methods

Creates a constant class value representing classOf[].

Creates a constant class value representing classOf[].

Value parameters

tpe

the type represented by the classOf constant

Attributes

Returns

a ClassOfConstant representing classOf[tpe]

Source
Quotes.scala

Matches a class value constant representing classOf[] and extracts its type.

Matches a class value constant representing classOf[] and extracts its type.

Value parameters

constant

the ClassOfConstant to match against

Attributes

Returns

Some containing the type represented by the classOf constant, or None if no type can be extracted

Source
Quotes.scala