scala.reflect.macros

Aliases

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
Context
Source
Aliases.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Aliases
  2. AnyRef
  3. Any
Implicitly
  1. by StringAdd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type CompilationUnit = Universe.CompilationUnit

    The type of compilation units.

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

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

  3. type Modifiers = Universe.Modifiers

    The type of tree modifiers.

  4. type Name = Universe.Name

    The abstract type of names.

  5. type Position = Universe.Position

    Defines a universe-specific notion of positions.

  6. type Run = Universe.Run

    The type of compilation runs.

  7. type Scope = Universe.Scope

    The base type of all scopes.

  8. type Symbol = Universe.Symbol

    The type of symbols representing declarations.

  9. type TermName = Universe.TermName

    The abstract type of names representing terms.

  10. type Tree = Universe.Tree

    The type of Scala abstract syntax trees.

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

  12. type TypeName = Universe.TypeName

    The abstract type of names representing types.

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

    The type of type tags.

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

    The type of weak type tags.

Abstract Value Members

  1. abstract def Expr[T](tree: Context.Tree)(implicit arg0: Context.WeakTypeTag[T]): 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: Context.Type): 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: Context.Type): 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. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from Aliases to StringAdd[Aliases] performed by method StringAdd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (Aliases, B)

    Implicit information
    This member is added by an implicit conversion from Aliases to ArrowAssoc[Aliases] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. val Expr: Universe.Expr.type

    Constructor/Extractor for Expr.

  9. val TypeTag: Universe.TypeTag.type

    Constructor/Extractor for TypeTag.

  10. val WeakTypeTag: Universe.WeakTypeTag.type

    Constructor/Extractor for WeakTypeTag.

  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. def ensuring(cond: (Aliases) ⇒ Boolean, msg: ⇒ Any): Aliases

    Implicit information
    This member is added by an implicit conversion from Aliases to Ensuring[Aliases] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: (Aliases) ⇒ Boolean): Aliases

    Implicit information
    This member is added by an implicit conversion from Aliases to Ensuring[Aliases] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean, msg: ⇒ Any): Aliases

    Implicit information
    This member is added by an implicit conversion from Aliases to Ensuring[Aliases] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. def ensuring(cond: Boolean): Aliases

    Implicit information
    This member is added by an implicit conversion from Aliases to Ensuring[Aliases] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  20. def formatted(fmtstr: String): String

    Returns string formatted according to given format string.

    Returns string formatted according to given format string. Format strings are as for String.format (@see java.lang.String.format).

    Implicit information
    This member is added by an implicit conversion from Aliases to StringFormat[Aliases] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  21. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  24. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  28. def toString(): String

    Definition Classes
    AnyRef → Any
  29. def typeOf[T](implicit ttag: Context.TypeTag[T]): Context.Type

    Shortcut for implicitly[TypeTag[T]].tpe

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

    Shortcut for implicitly[TypeTag[T]]

  31. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  32. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  33. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  34. def weakTypeOf[T](implicit attag: Context.WeakTypeTag[T]): Context.Type

    Shortcut for implicitly[WeakTypeTag[T]].tpe

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

    Shortcut for implicitly[WeakTypeTag[T]]

  36. def [B](y: B): (Aliases, B)

    Implicit information
    This member is added by an implicit conversion from Aliases to ArrowAssoc[Aliases] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion StringAdd from Aliases to StringAdd[Aliases]

Inherited by implicit conversion StringFormat from Aliases to StringFormat[Aliases]

Inherited by implicit conversion Ensuring from Aliases to Ensuring[Aliases]

Inherited by implicit conversion ArrowAssoc from Aliases to ArrowAssoc[Aliases]

Ungrouped