trait Aliases extends AnyRef
EXPERIMENTAL
A slice of the Scala macros context that defines shorthands for the most frequently used types and functions of the underlying compiler universe.
- Self Type
- blackbox.Context
- Source
- Aliases.scala
- Alphabetic
- By Inheritance
- Aliases
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Type Members
- type Expr[+T] = Universe.Expr[T]
Expr wraps an abstract syntax tree and tags it with its type.
- type Modifiers = Universe.Modifiers
The type of tree modifiers.
- type Name = Universe.Name
The abstract type of names.
- type Position = Universe.Position
Defines a universe-specific notion of positions.
- type Scope = Universe.Scope
The base type of all scopes.
- type Symbol = Universe.Symbol
The type of symbols representing declarations.
- type TermName = Universe.TermName
The abstract type of names representing terms.
- type Tree = Universe.Tree
The type of Scala abstract syntax trees.
- type Type = Universe.Type
The type of Scala types, and also Scala type signatures.
The type of Scala types, and also Scala type signatures. (No difference is internally made between the two).
- type TypeName = Universe.TypeName
The abstract type of names representing types.
- type TypeTag[T] = Universe.TypeTag[T]
The type of type tags.
- type WeakTypeTag[T] = Universe.WeakTypeTag[T]
The type of weak type tags.
Deprecated Type Members
- type CompilationUnit = Universe.CompilationUnit
The type of compilation units.
The type of compilation units.
- Annotations
- @deprecated
- Deprecated
(Since version 2.11.0) c.enclosingTree-style APIs are now deprecated; consult the scaladoc for more information
- See also
- type Run = Universe.Run
The type of compilation runs.
The type of compilation runs.
- Annotations
- @deprecated
- Deprecated
(Since version 2.11.0) c.enclosingTree-style APIs are now deprecated; consult the scaladoc for more information
- See also
Abstract Value Members
- abstract def Expr[T](tree: blackbox.Context.Tree)(implicit arg0: blackbox.Context.WeakTypeTag[T]): blackbox.Context.Expr[T]
A shorthand to create an expr.
A shorthand to create an expr.
Unlike the conventional expr factory, which requires a scala.reflect.api.TreeCreator, this one accepts a regular tree, but the resulting exprs are unable of being migrated to other universes/mirrors (the functionality normally not needed for macros, since there is only one compile-time universe and only one compile-time mirror).
- abstract def TypeTag[T](tpe: blackbox.Context.Type): blackbox.Context.TypeTag[T]
A shorthand to create a type tag.
A shorthand to create a type tag.
Unlike the conventional type tag factory, which requires a scala.reflect.api.TypeCreator, this one accepts a regular type, but the resulting type tags are unable of being migrated to other universes/mirrors (the functionality normally not needed for macros, since there is only one compile-time universe and only one compile-time mirror).
- abstract def WeakTypeTag[T](tpe: blackbox.Context.Type): blackbox.Context.WeakTypeTag[T]
A shorthand to create a weak type tag.
A shorthand to create a weak type tag.
Unlike the conventional type tag factory, which requires a scala.reflect.api.TypeCreator, this one accepts a regular type, but the resulting type tags are unable of being migrated to other universes/mirrors (the functionality normally not needed for macros, since there is only one compile-time universe and only one compile-time mirror).
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (Aliases, B)
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val Expr: Universe.Expr.type
Constructor/Extractor for
Expr
. - val TypeTag: Universe.TypeTag.type
Constructor/Extractor for
TypeTag
. - val WeakTypeTag: Universe.WeakTypeTag.type
Constructor/Extractor for
WeakTypeTag
. - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def ensuring(cond: (Aliases) => Boolean, msg: => Any): Aliases
- def ensuring(cond: (Aliases) => Boolean): Aliases
- def ensuring(cond: Boolean, msg: => Any): Aliases
- def ensuring(cond: Boolean): Aliases
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def symbolOf[T](implicit arg0: blackbox.Context.WeakTypeTag[T]): Universe.TypeSymbol
Type symbol of
x
as derived from a type tag. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def typeOf[T](implicit ttag: blackbox.Context.TypeTag[T]): blackbox.Context.Type
Shortcut for
implicitly[TypeTag[T]].tpe
- def typeTag[T](implicit ttag: blackbox.Context.TypeTag[T]): blackbox.Context.TypeTag[T]
Shortcut for
implicitly[TypeTag[T]]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def weakTypeOf[T](implicit attag: blackbox.Context.WeakTypeTag[T]): blackbox.Context.Type
Shortcut for
implicitly[WeakTypeTag[T]].tpe
- def weakTypeTag[T](implicit attag: blackbox.Context.WeakTypeTag[T]): blackbox.Context.WeakTypeTag[T]
Shortcut for
implicitly[WeakTypeTag[T]]
Deprecated Value Members
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from Aliases toStringFormat[Aliases] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- def →[B](y: B): (Aliases, B)
- Implicit
- This member is added by an implicit conversion from Aliases toArrowAssoc[Aliases] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.