Scala Reflection Library2.12.2-20170504-135222-21d12e9 < Back
 

# Packages

-  package root
  Definition Classes
    root
-  package scala
  Definition Classes
    root
-  package reflect
  Definition Classes
    scala
-  package macros

  EXPERIMENTAL

  EXPERIMENTAL

  The base package for Scala macros.

  Macros are functions that are called by the compiler during compilation. Within these functions the programmer has access to compiler APIs. For example, it is possible to generate, analyze and typecheck code.

  See the Macros Guide on how to get started with Scala macros.

  Definition Classes
    reflect
-  abstract class Universe extends api.Universe

  EXPERIMENTAL

  EXPERIMENTAL

  The refinement of scala.reflect.api.Universe for the use by macro writers.

  This universe provides mutability for reflection artifacts (e.g. macros can change types of compiler trees, add annotation to symbols representing definitions, etc) and exposes some internal compiler functionality such as `Symbol.deSkolemize` or `Tree.attachments`.

  Definition Classes
    macros
- Alternative
- AlternativeApi
- AlternativeExtractor
- Annotated
- AnnotatedApi
- AnnotatedExtractor
- AnnotatedType
- AnnotatedTypeApi
- AnnotatedTypeExtractor
- Annotation
- AnnotationApi
- AnnotationExtractor
- AppliedTypeTree
- AppliedTypeTreeApi
- AppliedTypeTreeExtractor
- Apply
- ApplyApi
- ApplyExtractor
- ArrayArgument
- ArrayArgumentApi
- ArrayArgumentExtractor
- Assign
- AssignApi
- AssignExtractor
- AssignOrNamedArg
- AssignOrNamedArgApi
- AssignOrNamedArgExtractor
- Bind
- BindApi
- BindExtractor
- Block
- BlockApi
- BlockExtractor
- BooleanFlag
- BoundedWildcardType
- BoundedWildcardTypeApi
- BoundedWildcardTypeExtractor
- CaseDef
- CaseDefApi
- CaseDefExtractor
- ClassDef
- ClassDefApi
- ClassDefExtractor
- ClassInfoType
- ClassInfoTypeApi
- ClassInfoTypeExtractor
- ClassMirror
- ClassSymbol
- ClassSymbolApi
- Compat
- CompatApi
- CompatToken
- CompilationUnit
- CompilationUnitContextApi
- CompoundType
- CompoundTypeApi
- CompoundTypeTree
- CompoundTypeTreeApi
- CompoundTypeTreeExtractor
- Constant
- ConstantApi
- ConstantExtractor
- ConstantType
- ConstantTypeApi
- ConstantTypeExtractor
- DefDef
- DefDefApi
- DefDefExtractor
- DefTree
- DefTreeApi
- DefinitionsApi
- ExistentialType
- ExistentialTypeApi
- ExistentialTypeExtractor
- ExistentialTypeTree
- ExistentialTypeTreeApi
- ExistentialTypeTreeExtractor
- Expr
- FieldMirror
- FlagOps
- FlagSet
- FlagValues
- FreeTermSymbol
- FreeTermSymbolApi
- FreeTypeSymbol
- FreeTypeSymbolApi
- Function
- FunctionApi
- FunctionExtractor
- GenericApply
- GenericApplyApi
- Ident
- IdentApi
- IdentExtractor
- If
- IfApi
- IfExtractor
- ImplDef
- ImplDefApi
- Import
- ImportApi
- ImportExtractor
- ImportSelector
- ImportSelectorApi
- ImportSelectorExtractor
- Importer
- InstanceMirror
- Internal
- InternalApi
- JavaArgument
- JavaArgumentApi
- LabelDef
- LabelDefApi
- LabelDefExtractor
- Liftable
- Literal
- LiteralApi
- LiteralArgument
- LiteralArgumentApi
- LiteralArgumentExtractor
- LiteralExtractor
- MacroCompatApi
- MacroInternalApi
- Match
- MatchApi
- MatchExtractor
- MemberDef
- MemberDefApi
- MemberScope
- MemberScopeApi
- MethodMirror
- MethodSymbol
- MethodSymbolApi
- MethodType
- MethodTypeApi
- MethodTypeExtractor
- Mirror
- Modifiers
- ModifiersApi
- ModifiersExtractor
- ModuleDef
- ModuleDefApi
- ModuleDefExtractor
- ModuleMirror
- ModuleSymbol
- ModuleSymbolApi
- Name
- NameApi
- NameTree
- NameTreeApi
- NamesApi
- NestedArgument
- NestedArgumentApi
- NestedArgumentExtractor
- New
- NewApi
- NewExtractor
- NullaryMethodType
- NullaryMethodTypeApi
- NullaryMethodTypeExtractor
- PackageDef
- PackageDefApi
- PackageDefExtractor
- PolyType
- PolyTypeApi
- PolyTypeExtractor
- Position
- Quasiquote
- RefTree
- RefTreeApi
- RefTreeExtractor
- ReferenceToBoxed
- ReferenceToBoxedApi
- ReferenceToBoxedExtractor
- RefinedType
- RefinedTypeApi
- RefinedTypeExtractor
- ReflectiveMirror
- ReificationSupportApi
- Return
- ReturnApi
- ReturnExtractor
- Run
- RunContextApi
- RuntimeClass
- RuntimeClassApi
- RuntimeMirror
- Scope
- ScopeApi
- Select
- SelectApi
- SelectExtractor
- SelectFromTypeTree
- SelectFromTypeTreeApi
- SelectFromTypeTreeExtractor
- SingleType
- SingleTypeApi
- SingleTypeExtractor
- SingletonType
- SingletonTypeApi
- SingletonTypeTree
- SingletonTypeTreeApi
- SingletonTypeTreeExtractor
- StandardLiftableInstances
- StandardTypes
- StandardUnliftableInstances
- Star
- StarApi
- StarExtractor
- Super
- SuperApi
- SuperExtractor
- SuperType
- SuperTypeApi
- SuperTypeExtractor
- SymTree
- SymTreeApi
- Symbol
- SymbolApi
- Template
- TemplateApi
- TemplateExtractor
- TemplateMirror
- TermName
- TermNameApi
- TermNameExtractor
- TermNamesApi
- TermSymbol
- TermSymbolApi
- TermTree
- TermTreeApi
- This
- ThisApi
- ThisExtractor
- ThisType
- ThisTypeApi
- ThisTypeExtractor
- Throw
- ThrowApi
- ThrowExtractor
- Transformer
- Traverser
- Tree
- TreeApi
- TreeCopier
- TreeCopierOps
- TreeGen
- TreePrinter
- Try
- TryApi
- TryExtractor
- TypTree
- TypTreeApi
- Type
- TypeApi
- TypeApply
- TypeApplyApi
- TypeApplyExtractor
- TypeBounds
- TypeBoundsApi
- TypeBoundsExtractor
- TypeBoundsTree
- TypeBoundsTreeApi
- TypeBoundsTreeExtractor
- TypeDef
- TypeDefApi
- TypeDefExtractor
- TypeName
- TypeNameApi
- TypeNameExtractor
- TypeNamesApi
- TypeRef
- TypeRefApi
- TypeRefExtractor
- TypeSymbol
- TypeSymbolApi
- TypeTag
- TypeTree
- TypeTreeApi
- TypeTreeExtractor
- Typed
- TypedApi
- TypedExtractor
- UnApply
- UnApplyApi
- UnApplyExtractor
- Unliftable
- ValDef
- ValDefApi
- ValDefExtractor
- ValOrDefDef
- ValOrDefDefApi
- WeakTypeTag

t

scala.reflect.macros.Universe

# MacroCompatApi 

###

#### trait MacroCompatApi extends CompatApi

Source
  Universe.scala
See also

  compat

Linear Supertypes
Universe.CompatApi, AnyRef, Any
Type Hierarchy
 
Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. MacroCompatApi
2. CompatApi
3. AnyRef
4. 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.  implicit class CompatibleBuildApi extends AnyRef

   Scala 2.10 compatibility enrichments for BuildApi.

   Scala 2.10 compatibility enrichments for BuildApi.

   Definition Classes
     CompatApi
2.  implicit class CompatibleSymbol extends AnyRef

   Scala 2.10 compatibility enrichments for Tree.

   Scala 2.10 compatibility enrichments for Tree.

   Definition Classes
     CompatApi
3.  implicit class CompatibleTree extends AnyRef

   Scala 2.10 compatibility enrichments for Tree.

   Scala 2.10 compatibility enrichments for Tree.

   Definition Classes
     CompatApi
4.  implicit class CompatibleTypeTree extends AnyRef

   Scala 2.10 compatibility enrichments for TypeTree.

5.  implicit class MacroCompatibleSymbol extends AnyRef

   Scala 2.10 compatibility enrichments for Symbol.

6.  implicit class MacroCompatibleTree extends AnyRef

   Scala 2.10 compatibility enrichments for TypeTree.

### Value Members

1.  final def !=(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
2.  final def ##(): Int
   Definition Classes
     AnyRef → Any
3.  def +(other: String): String
   Implicit
     This member is added by an implicit conversion from MacroCompatApi to any2stringadd[MacroCompatApi] performed by method any2stringadd in scala.Predef.
   Definition Classes
     any2stringadd
4.  def ->[B](y: B): (MacroCompatApi, B)
   Implicit
     This member is added by an implicit conversion from MacroCompatApi to ArrowAssoc[MacroCompatApi] performed by method ArrowAssoc in scala.Predef.
   Definition Classes
     ArrowAssoc
   Annotations
     @inline()
5.  final def ==(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
6.  final def asInstanceOf[T0]: T0
   Definition Classes
     Any
7.  def clone(): AnyRef
   Attributes
     protected[java.lang]
   Definition Classes
     AnyRef
   Annotations
     @throws( ... )
8.  def ensuring(cond: (MacroCompatApi) ⇒ Boolean, msg: ⇒ Any): MacroCompatApi
   Implicit
     This member is added by an implicit conversion from MacroCompatApi to Ensuring[MacroCompatApi] performed by method Ensuring in scala.Predef.
   Definition Classes
     Ensuring
9.  def ensuring(cond: (MacroCompatApi) ⇒ Boolean): MacroCompatApi
   Implicit
     This member is added by an implicit conversion from MacroCompatApi to Ensuring[MacroCompatApi] performed by method Ensuring in scala.Predef.
   Definition Classes
     Ensuring
10.  def ensuring(cond: Boolean, msg: ⇒ Any): MacroCompatApi
    Implicit
      This member is added by an implicit conversion from MacroCompatApi to Ensuring[MacroCompatApi] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
11.  def ensuring(cond: Boolean): MacroCompatApi
    Implicit
      This member is added by an implicit conversion from MacroCompatApi to Ensuring[MacroCompatApi] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
12.  final def eq(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
13.  def equals(arg0: Any): Boolean
    Definition Classes
      AnyRef → Any
14.  def finalize(): Unit
    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( classOf[java.lang.Throwable] )
15.  def formatted(fmtstr: String): String
    Implicit
      This member is added by an implicit conversion from MacroCompatApi to StringFormat[MacroCompatApi] performed by method StringFormat in scala.Predef.
    Definition Classes
      StringFormat
    Annotations
      @inline()
16.  final def getClass(): Class[_]
    Definition Classes
      AnyRef → Any
17.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
18.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
19.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
20.  final def notify(): Unit
    Definition Classes
      AnyRef
21.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
22.  final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
      AnyRef
23.  def toString(): String
    Definition Classes
      AnyRef → Any
24.  implicit val token: Universe.CompatToken

    Definition Classes
      CompatApi
    See also

      CompatToken

25.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
26.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
27.  final def wait(arg0: Long): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
28.  def →[B](y: B): (MacroCompatApi, B)
    Implicit
      This member is added by an implicit conversion from MacroCompatApi to ArrowAssoc[MacroCompatApi] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
      ArrowAssoc

### Deprecated Value Members

1.  def captureVariable(vble: Universe.Symbol): Unit

   Annotations
     @deprecated
   Deprecated

     (Since version 2.11.0) use `internal.captureVariable` instead

   See also

     InternalMacroApi.captureVariable

2.  def capturedVariableType(vble: Universe.Symbol): Universe.Type

   Annotations
     @deprecated
   Deprecated

     (Since version 2.11.0) use `internal.capturedVariableType` instead

   See also

     InternalMacroApi.captureVariable

3.  def existentialAbstraction(tparams: List[Universe.Symbol], tpe0: Universe.Type): Universe.Type

   Definition Classes
     CompatApi
   Annotations
     @deprecated
   Deprecated

     (Since version 2.11.0) use `internal.existentialAbstraction` instead

   See also

     InternalApi.existentialAbstraction

4.  def intersectionType(tps: List[Universe.Type], owner: Universe.Symbol): Universe.Type

   Definition Classes
     CompatApi
   Annotations
     @deprecated
   Deprecated

     (Since version 2.11.0) use `internal.intersectionType` instead

   See also

     InternalApi.intersectionType

5.  def intersectionType(tps: List[Universe.Type]): Universe.Type

   Definition Classes
     CompatApi
   Annotations
     @deprecated
   Deprecated

     (Since version 2.11.0) use `internal.intersectionType` instead

   See also

     InternalApi.intersectionType

6.  def manifestToTypeTag[T](mirror: Any, manifest: Manifest[T]): api.Universe.TypeTag[T]

   Definition Classes
     CompatApi
   Annotations
     @deprecated
   Deprecated

     (Since version 2.11.0) use `internal.manifestToTypeTag` instead

   See also

     InternalApi.manifestToTypeTag

7.  def newScopeWith(elems: Universe.Symbol*): Universe.Scope

   Definition Classes
     CompatApi
   Annotations
     @deprecated
   Deprecated

     (Since version 2.11.0) use `internal.newScopeWith` instead

   See also

     InternalApi.newScopeWith

8.  def polyType(tparams: List[Universe.Symbol], tpe: Universe.Type): Universe.Type

   Definition Classes
     CompatApi
   Annotations
     @deprecated
   Deprecated

     (Since version 2.11.0) use `internal.polyType` instead

   See also

     InternalApi.polyType

9.  def referenceCapturedVariable(vble: Universe.Symbol): Universe.Tree

   Annotations
     @deprecated
   Deprecated

     (Since version 2.11.0) use `internal.referenceCapturedVariable` instead

   See also

     InternalMacroApi.captureVariable

10.  def refinedType(parents: List[Universe.Type], owner: Universe.Symbol): Universe.Type

    Definition Classes
      CompatApi
    Annotations
      @deprecated
    Deprecated

      (Since version 2.11.0) use `internal.refinedType` instead

    See also

      InternalApi.refinedType

11.  def refinedType(parents: List[Universe.Type], owner: Universe.Symbol, decls: Universe.Scope, pos: Universe.Position): Universe.Type

    Definition Classes
      CompatApi
    Annotations
      @deprecated
    Deprecated

      (Since version 2.11.0) use `internal.refinedType` instead

    See also

      InternalApi.refinedType

12.  def singleType(pre: Universe.Type, sym: Universe.Symbol): Universe.Type

    Definition Classes
      CompatApi
    Annotations
      @deprecated
    Deprecated

      (Since version 2.11.0) use `internal.singleType` instead

    See also

      InternalApi.singleType

13.  def typeRef(pre: Universe.Type, sym: Universe.Symbol, args: List[Universe.Type]): Universe.Type

    Definition Classes
      CompatApi
    Annotations
      @deprecated
    Deprecated

      (Since version 2.11.0) use `internal.typeRef` instead

    See also

      InternalApi.typeRef

14.  def typeTagToManifest[T](mirror: Any, tag: api.Universe.TypeTag[T])(implicit arg0: ClassTag[T]): Manifest[T]

    Definition Classes
      CompatApi
    Annotations
      @deprecated
    Deprecated

      (Since version 2.11.0) use `internal.typeTagToManifest` instead

    See also

      InternalApi.typeTagToManifest

### Inherited from Universe.CompatApi

### Inherited from AnyRef

### Inherited from Any

### Inherited by implicit conversion any2stringadd from MacroCompatApi to any2stringadd[MacroCompatApi]

### Inherited by implicit conversion StringFormat from MacroCompatApi to StringFormat[MacroCompatApi]

### Inherited by implicit conversion Ensuring from MacroCompatApi to Ensuring[MacroCompatApi]

### Inherited by implicit conversion ArrowAssoc from MacroCompatApi to ArrowAssoc[MacroCompatApi]

### Ungrouped