Packages

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
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Aliases
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Expr[+T] = Universe.Expr[T]

    Expr wraps an abstract syntax tree and tags it with its type.

  2. type Modifiers = Universe.Modifiers

    The type of tree modifiers.

  3. type Name = Universe.Name

    The abstract type of names.

  4. type Position = Universe.Position

    Defines a universe-specific notion of positions.

  5. type Scope = Universe.Scope

    The base type of all scopes.

  6. type Symbol = Universe.Symbol

    The type of symbols representing declarations.

  7. type TermName = Universe.TermName

    The abstract type of names representing terms.

  8. type Tree = Universe.Tree

    The type of Scala abstract syntax trees.

  9. 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).

  10. type TypeName = Universe.TypeName

    The abstract type of names representing types.

  11. type TypeTag[T] = Universe.TypeTag[T]

    The type of type tags.

  12. type WeakTypeTag[T] = Universe.WeakTypeTag[T]

    The type of weak type tags.

  13. 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

    scala.reflect.macros.Enclosures

  14. 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

    scala.reflect.macros.Enclosures

Abstract Value Members

  1. 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).

  2. 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).

  3. 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

  1. val Expr: Universe.Expr.type

    Constructor/Extractor for Expr.

  2. val TypeTag: Universe.TypeTag.type

    Constructor/Extractor for TypeTag.

  3. val WeakTypeTag: Universe.WeakTypeTag.type

    Constructor/Extractor for WeakTypeTag.

  4. def symbolOf[T](implicit arg0: blackbox.Context.WeakTypeTag[T]): Universe.TypeSymbol

    Type symbol of x as derived from a type tag.

  5. def typeOf[T](implicit ttag: blackbox.Context.TypeTag[T]): blackbox.Context.Type

    Shortcut for implicitly[TypeTag[T]].tpe

  6. def typeTag[T](implicit ttag: blackbox.Context.TypeTag[T]): blackbox.Context.TypeTag[T]

    Shortcut for implicitly[TypeTag[T]]

  7. def weakTypeOf[T](implicit attag: blackbox.Context.WeakTypeTag[T]): blackbox.Context.Type

    Shortcut for implicitly[WeakTypeTag[T]].tpe

  8. def weakTypeTag[T](implicit attag: blackbox.Context.WeakTypeTag[T]): blackbox.Context.WeakTypeTag[T]

    Shortcut for implicitly[WeakTypeTag[T]]