Packages

t

scala.reflect.macros.runtime

MacroRuntimes

trait MacroRuntimes extends JavaReflectionRuntimes

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MacroRuntimes
  2. JavaReflectionRuntimes
  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. trait JavaReflectionResolvers extends AnyRef
    Definition Classes
    JavaReflectionRuntimes
  2. type MacroRuntime = (tools.nsc.typechecker.Analyzer.MacroArgs) ⇒ Any

    Abstracts away resolution of macro runtimes.

  3. class MacroRuntimeResolver extends tools.nsc.typechecker.Analyzer.JavaReflectionResolvers

Value Members

  1. def defaultMacroClassloader: ClassLoader
  2. def macroRuntime(expandee: tools.nsc.Global.Tree): tools.nsc.typechecker.Analyzer.MacroRuntime

    Produces a function that can be used to invoke macro implementation for a given macro definition: 1) Looks up macro implementation symbol in this universe.

    Produces a function that can be used to invoke macro implementation for a given macro definition: 1) Looks up macro implementation symbol in this universe. 2) Loads its enclosing class from the macro classloader. 3) Loads the companion of that enclosing class from the macro classloader. 4) Resolves macro implementation within the loaded companion.

    returns

    Requested runtime if macro implementation can be loaded successfully from either of the mirrors, null otherwise.

  3. def standardMacroRuntime(expandee: tools.nsc.Global.Tree): tools.nsc.typechecker.Analyzer.MacroRuntime