ExprDecoder

io.github.iltotore.iron.macros.ReflectUtil.ExprDecoder
object ExprDecoder

Attributes

Source
ReflectUtil.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def decodeBigDecimal(term: _quotes.reflect.Term, definitions: Map[String, _]): DecodingResult[BigDecimal]

Decode a BigDecimal term using only BigDecimal-specific cases.

Decode a BigDecimal term using only BigDecimal-specific cases.

Value parameters

definitions

the decoded definitions in scope

term

the term to decode

Attributes

Returns

the value of the given term found at compile time or a DecodingFailure

Source
ReflectUtil.scala
def decodeBigInt(term: _quotes.reflect.Term, definitions: Map[String, _]): DecodingResult[BigInt]

Decode a BigInt term using only BigInt-specific cases.

Decode a BigInt term using only BigInt-specific cases.

Value parameters

definitions

the decoded definitions in scope

term

the term to decode

Attributes

Returns

the value of the given term found at compile time or a DecodingFailure

Source
ReflectUtil.scala
def decodeBinding(definition: _quotes.reflect.Definition, definitions: Map[String, _]): Either[DecodingFailure, _]

Decode a binding/definition.

Decode a binding/definition.

Type parameters

T

the expected type of this term used as implicit cast for convenience

Value parameters

definition

the definition to decode

definitions

the definitions already decoded in scope

Attributes

Returns

the value of the given definition found at compile time or a DecodingFailure

Source
ReflectUtil.scala
def decodeBoolean(term: _quotes.reflect.Term, definitions: Map[String, _]): Either[DecodingFailure, _]

Decode a Boolean term using only Boolean-specific cases.

Decode a Boolean term using only Boolean-specific cases.

Value parameters

definitions

the decoded definitions in scope

term

the term to decode

Attributes

Returns

the value of the given term found at compile time or a DecodingFailure

Source
ReflectUtil.scala
def decodeList(term: _quotes.reflect.Term, definitions: Map[String, _]): DecodingResult[List[_]]

Decode a List term using only List-specific cases.

Decode a List term using only List-specific cases.

Value parameters

definitions

the decoded definitions in scope

term

the term to decode

Attributes

Returns

the value of the given term found at compile time or a DecodingFailure

Source
ReflectUtil.scala
def decodeSet(term: _quotes.reflect.Term, definitions: Map[String, _]): DecodingResult[Set[_]]

Decode a Set term using only Set-specific cases.

Decode a Set term using only Set-specific cases.

Value parameters

definitions

the decoded definitions in scope

term

the term to decode

Attributes

Returns

the value of the given term found at compile time or a DecodingFailure

Source
ReflectUtil.scala
def decodeString(term: _quotes.reflect.Term, definitions: Map[String, _]): DecodingResult[String]

Decode a String term using only String-specific cases.

Decode a String term using only String-specific cases.

Value parameters

definitions

the decoded definitions in scope

term

the term to decode

Attributes

Returns

the value of the given term found at compile time or a DecodingFailure

Source
ReflectUtil.scala
def decodeTerm(tree: _quotes.reflect.Term, definitions: Map[String, _]): Either[DecodingFailure, _]

Decode a term.

Decode a term.

Value parameters

definitions

the decoded definitions in scope

tree

the term to decode

Attributes

Returns

the value of the given term found at compile time or a DecodingFailure

Source
ReflectUtil.scala
def decodeUnspecializedTerm(tree: _quotes.reflect.Term, definitions: Map[String, _]): Either[DecodingFailure, _]

Decode a term using only unspecialized cases.

Decode a term using only unspecialized cases.

Type parameters

T

the expected type of this term used as implicit cast for convenience

Value parameters

definitions

the decoded definitions in scope

tree

the term to decode

Attributes

Returns

the value of the given term found at compile time or a DecodingFailure

Source
ReflectUtil.scala