scala.quoted
Members list
Type members
Classlikes
A type class for types that can convert a quoted.Expr[T]
to a T
.
A type class for types that can convert a quoted.Expr[T]
to a T
.
- Converts expression containing literal values to their values:
'{1}
->1
,'{2}
->2
, ...- For all primitive types and
String
- Converts an expression that constructs a copy of its value.
- This expression must be some kind of data structure (
Some
,List
,Either
, ...) - Calls to
new X
orX.apply
can be lifted into its value - Arguments of constructors can be recursively unlifted
- This expression must be some kind of data structure (
Attributes
- Companion:
- object
- Graph
- Supertypes
- Known subtypes
- object EmptyTupleFromExpr.typeobject NilFromExpr.typeobject NoneFromExpr.typeobject StringContextFromExpr.type
Quotation context provided by a macro expansion or in the scope of scala.quoted.staging.run
.
Used to perform all operations on quoted Expr
or Type
.
Quotation context provided by a macro expansion or in the scope of scala.quoted.staging.run
.
Used to perform all operations on quoted Expr
or Type
.
It contains the low-level Typed AST API metaprogramming API.
This API does not have the static type guarantees that Expr
and Type
provide.
Attributes
- Graph
- Supertypes
- Self type
A type class for types that can convert a value of T
into quoted.Expr[T]
an expression that will create a copy of the value.
A type class for types that can convert a value of T
into quoted.Expr[T]
an expression that will create a copy of the value.
Attributes
- Companion:
- object
- Graph
- Supertypes
- Known subtypes
- object ArrayOfBooleanToExpr.typeobject ArrayOfByteToExpr.typeobject ArrayOfCharToExpr.typeobject ArrayOfDoubleToExpr.typeobject ArrayOfFloatToExpr.typeobject ArrayOfIntToExpr.typeobject ArrayOfLongToExpr.typeobject ArrayOfShortToExpr.typeobject BigDecimalToExpr.typeobject BigIntToExpr.typeobject EmptyTupleToExpr.typeobject NilToExpr.typeobject NoneToExpr.typeobject StringContextToExpr.type
Expression representation of literal sequence of expressions.
Expression representation of literal sequence of expressions.
Varargs
can be used to create the an expression args
that will be used as varargs '{ f($args: _*) }
or it can be used to extract all the arguments of the a varargs.
Attributes
- Graph
- Supertypes
- Self type
- Varargs.type