Scala Compiler2.13.18 < Back


# Packages

-  package root

  The Scala compiler and reflection APIs.

  The Scala compiler and reflection APIs.

  Definition Classes
    root
-  package scala
  Definition Classes
    root
-  package tools
  Definition Classes
    scala
-  package nsc
  Definition Classes
    tools
-  package ast
-  package backend
-  package classpath
-  package doc
-  package fsc
-  package interactive
-  package interpreter
-  package io
-  package javac
-  package plugins
-  package profile
-  package reporters
-  package settings
-  package symtab
-  package tasty
-  package transform
-  package typechecker
-  package util
- AbstractScriptRunner
- ClassPathMemoryConsumptionTester
- CloseableRegistry
- CommonRunner
- CompilationUnits
- CompilerCommand
- ConsoleWriter
- DefaultScriptRunner
- DependencyGraph
- Driver
- EvalLoop
- GenericRunnerCommand
- GenericRunnerSettings
- Global
- GlobalSymbolLoaders
- Interpreter
- InterpreterLoop
- JarRunner
- Main
- MainBench
- MainClass
- MainGenericRunner
- MainTokenMetric
- NewLinePrintWriter
- NoScriptError
- ObjectRunner
- Parsing
- PhaseAssembly
- PickleExtractor
- PipelineMain
- PipelineMainClass
- Properties
- Reporting
- ScalaDoc
- ScalaDocReporter
- ScriptCompileError
- ScriptRunner
- Settings
- SubComponent
-  package reflect
  Definition Classes
    tools
-  package tasty
  Definition Classes
    tools
-  package util
  Definition Classes
    tools

p

scala.tools

# nsc

#### package nsc

Source
  package.scala

Linear Supertypes
AnyRef, Any
Content Hierarchy

Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. nsc
2. AnyRef
3. Any

1. Hide All
2. Show All

Visibility

1. Public
2. Protected

### Package Members

1.  package ast
2.  package backend
3.  package classpath
4.  package doc
5.  package fsc
6.  package interactive
7.  package interpreter
8.  package io
9.  package javac
10.  package plugins
11.  package profile
12.  package reporters
13.  package settings
14.  package symtab
15.  package tasty
16.  package transform
17.  package typechecker
18.  package util

### Type Members

1.  abstract class AbstractScriptRunner extends ScriptRunner
2.  final class CloseableRegistry extends Closeable

   Registry for resources to close when `Global` is closed

3.  trait CommonRunner extends AnyRef
4.  trait CompilationUnits extends AnyRef
5.  class CompilerCommand extends AnyRef

   A class representing command line info for scalac

6.  class ConsoleWriter extends Writer

   A Writer that writes onto the Scala Console.

7.  class DefaultScriptRunner extends AbstractScriptRunner
8.  class DependencyGraph extends AnyRef

   A graph with the given number of vertices.

   A graph with the given number of vertices.

   Each vertex is labeled with its phase name.

9.  abstract class Driver extends AnyRef
10.  trait EvalLoop extends AnyRef
11.  type FatalError = reflect.internal.FatalError
12.  class GenericRunnerCommand extends CompilerCommand

    A command for ScriptRunner

13.  class GenericRunnerSettings extends Settings
14.  class Global extends SymbolTable with Closeable with CompilationUnits with Plugins with PhaseAssembly with Trees with Printers with DocComments with Positions with Reporting with Parsing
15.  abstract class GlobalSymbolLoaders extends SymbolLoaders

    Symbol loaders implementation that wires dependencies using Global.

16.  class MainClass extends Driver with EvalLoop

    The main class for NSC, a compiler for the programming language Scala.

17.  class MainGenericRunner extends AnyRef

    An object that runs Scala code.

    An object that runs Scala code. It has three possible sources for the code to run: pre-compiled code, a script file, or interactive entry.

18.  type MissingRequirementError = reflect.internal.MissingRequirementError
19.  type Mode = reflect.internal.Mode
20.  class NewLinePrintWriter extends PrintWriter
21.  trait Parsing extends AnyRef

    Similar to Reporting: gather global functionality specific to parsing.

22.  type Phase = reflect.internal.Phase
23.  trait PhaseAssembly extends AnyRef

    Sorts the global phasesSet according to SubComponent constraints.

24.  class PipelineMainClass extends AnyRef
25.  trait Reporting extends reflect.internal.Reporting

    Provides delegates to the reporter doing the actual work.

    Provides delegates to the reporter doing the actual work. PerRunReporting implements per-Run stateful info tracking and reporting

26.  class ScalaDoc extends AnyRef

    The main class for scaladoc, a front-end for the Scala compiler that generates documentation from source files.

27.  class ScalaDocReporter extends ConsoleReporter

    The Scaladoc reporter adds summary messages to the `ConsoleReporter`

    The Scaladoc reporter adds summary messages to the `ConsoleReporter`

    Use the `summaryX` methods to add unique summarizing message to the end of the run.

28.  trait ScriptRunner extends AnyRef

    An object that runs Scala code in script files.

    An object that runs Scala code in script files.

    For example, here is a complete Scala script on Unix:

        #!/bin/sh
        exec scala "$0" "$@"
        !#
        Console.println("Hello, world!")
        args.toList foreach Console.println

    And here is a batch file example on Windows XP:

        ::#!
        @echo off
        call scala %0 %*
        goto :eof
        ::!#
        Console.println("Hello, world!")
        args.toList foreach Console.println

    To do

      It would be better if error output went to stderr instead of stdout...

29.  class Settings extends MutableSettings

    A compatibility stub.

30.  abstract class SubComponent extends AnyRef

    Compilation is split into phases and the sub-components of the compiler define such phases.

31.  type Variance = reflect.internal.Variance

### Deprecated Type Members

1.  class Interpreter extends AnyRef
   Annotations
     @deprecated
   Deprecated

     (Since version 2.9.0) Use a class in the scala.tools.nsc.interpreter package.

2.  class InterpreterLoop extends AnyRef
   Annotations
     @deprecated
   Deprecated

     (Since version 2.9.0) Use a class in the scala.tools.nsc.interpreter package.

### Value Members

1.  def EXPRmode: reflect.internal.Mode
2.  val FatalError: reflect.internal.FatalError.type
3.  val MissingRequirementError: reflect.internal.MissingRequirementError.type
4.  val Mode: reflect.internal.Mode.type
5.  val NoPhase: reflect.internal.NoPhase.type
6.  val Variance: reflect.internal.Variance.type
7.  implicit val strip margin: (StringContext) => StringContextStripMarginOps

   Adds the `sm` interpolator to a scala.StringContext.

8.  object ClassPathMemoryConsumptionTester

   Simple application to check out amount of memory used by chosen classpath representation.

   Simple application to check out amount of memory used by chosen classpath representation. It allows us to create many scalac-like calls based on specified parameters, where each main retains Global. And we need additional tool (e.g. profiler) to measure memory consumption itself.

9.  object DependencyGraph
10.  object GenericRunnerCommand
11.  object Global
12.  object JarRunner extends CommonRunner
13.  object Main extends MainClass
14.  object MainBench extends Driver with EvalLoop

    The main class for NSC, a compiler for the programming language Scala.

15.  object MainGenericRunner extends MainGenericRunner
16.  object MainTokenMetric

    The main class for NSC, a compiler for the programming language Scala.

17.  object NoScriptError extends ControlThrowable
18.  object ObjectRunner extends CommonRunner

    An object that runs another object specified by name.

19.  object PickleExtractor
20.  object PipelineMain
21.  object Properties extends PropertiesTrait

    Loads `compiler.properties` from the jar archive file.

22.  object Reporting
23.  object ScalaDoc extends ScalaDoc
24.  object ScriptCompileError extends ControlThrowable
25.  object ScriptRunner

### Deprecated Value Members

1.  lazy val ListOfNil: List[List[Nothing]]
   Annotations
     @deprecated
   Deprecated

     (Since version 2.11.0) Use scala.reflect.internal.util.ListOfNil

### Inherited from AnyRef

### Inherited from Any

### Ungrouped