Scala Compiler2.12.2-20170504-135222-21d12e9 < 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
  Definition Classes
    nsc
-  package backend
  Definition Classes
    nsc
-  package classpath
  Definition Classes
    nsc
-  package doc
  Definition Classes
    nsc
-  package interactive
  Definition Classes
    nsc
-  package interpreter

  The main REPL related classes and values are as follows.

  The main REPL related classes and values are as follows. In addition to standard compiler classes Global and Settings, there are:

  History: an interface for session history. Completion: an interface for tab completion. ILoop (formerly InterpreterLoop): The umbrella class for a session. IMain (formerly Interpreter): Handles the evolving state of the session and handles submitting code to the compiler and handling the output. InteractiveReader: how ILoop obtains input. History: an interface for session history. Completion: an interface for tab completion. Power: a repository for more advanced/experimental features.

  ILoop contains { in: InteractiveReader, intp: IMain, settings: Settings, power: Power } InteractiveReader contains { history: History, completion: Completion } IMain contains { global: Global }

  Definition Classes
    nsc
-  package io
  Definition Classes
    nsc
-  package javac
  Definition Classes
    nsc
-  package plugins
  Definition Classes
    nsc
-  package reporters
  Definition Classes
    nsc
-  package settings
  Definition Classes
    nsc
-  package symtab
  Definition Classes
    nsc
-  package transform
  Definition Classes
    nsc
-  package typechecker
  Definition Classes
    nsc
-  package util
  Definition Classes
    nsc
- CharArrayReader
- CharArrayReaderData
- ClassPath
- ClassRepresentation
- DirectoryClassPath
- DocStrings
- EmptyAction
- Exceptional
- FailedInterrupt
- InterruptReq
- JavaCharArrayReader
- JavaClassPath
- MergedClassPath
- ShowPickled
- SimpleTracer
- StackTraceOps
- StatisticsInfo
- WorkScheduler

p

scala.tools.nsc

# util 

#### package util

Source
  package.scala

Linear Supertypes
AnyRef, Any
Content Hierarchy
 
Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. util
2. AnyRef
3. Any

1. Hide All
2. Show All

Visibility

1. Public
2. All

### Type Members

1.  abstract class CharArrayReader extends CharArrayReaderData
2.  trait CharArrayReaderData extends AnyRef
3.  trait ClassPath extends AnyRef

   A representation of the compiler's class- or sourcepath.

4.  trait ClassRepresentation extends AnyRef
5.  class EmptyAction extends () ⇒ Unit
6.  class FailedInterrupt extends Exception
7.  type HashSet[T >: Null <: AnyRef] = reflect.internal.util.HashSet[T]
8.  abstract class InterruptReq extends AnyRef

   A class of work items to be used in interrupt requests.

   A class of work items to be used in interrupt requests. Todo: we should replace the Eithers by Futures or Try's.

9.  class JavaCharArrayReader extends Iterator[Char] with Cloneable
10.  type Set[T <: AnyRef] = reflect.internal.util.Set[T]
11.  class SimpleTracer extends AnyRef

    A simple tracer

12.  implicit final class StackTraceOps extends AnyVal with StackTracing
13.  abstract class StatisticsInfo extends AnyRef
14.  class WorkScheduler extends AnyRef
15.  type AbstractFileClassLoader = reflect.internal.util.AbstractFileClassLoader
    Annotations
      @deprecated
    Deprecated

      (Since version 2.11.0) Moved to scala.reflect.internal.util.AbstractFileClassLoader

16.  type BatchSourceFile = reflect.internal.util.BatchSourceFile
    Annotations
      @deprecated
    Deprecated

      (Since version 2.10.0) Moved to scala.reflect.internal.util.BatchSourceFile

17.  sealed abstract class DirectoryClassPath extends AnyRef
    Annotations
      @deprecated
    Deprecated

      (Since version 2.12.0) shim for sbt's compiler interface

18.  type FakePos = reflect.internal.util.FakePos
    Annotations
      @deprecated
    Deprecated

      (Since version 2.10.0) Moved to scala.reflect.internal.util.FakePos

19.  sealed abstract class JavaClassPath extends AnyRef
    Annotations
      @deprecated
    Deprecated

      (Since version 2.12.0) shim for sbt's compiler interface

20.  sealed abstract class MergedClassPath extends AnyRef
    Annotations
      @deprecated
    Deprecated

      (Since version 2.12.0) shim for sbt's compiler interface

21.  type Position = reflect.internal.util.Position
    Annotations
      @deprecated
    Deprecated

      (Since version 2.10.0) Moved to scala.reflect.internal.util.Position

22.  type RangePosition = reflect.internal.util.RangePosition
    Annotations
      @deprecated
    Deprecated

      (Since version 2.10.0) Moved to scala.reflect.internal.util.RangePosition

23.  type ScalaClassLoader = reflect.internal.util.ScalaClassLoader
    Annotations
      @deprecated
    Deprecated

      (Since version 2.11.0) Moved to scala.reflect.internal.util.ScalaClassLoader

24.  type SourceFile = reflect.internal.util.SourceFile
    Annotations
      @deprecated
    Deprecated

      (Since version 2.10.0) Moved to scala.reflect.internal.util.SourceFile

### Value Members

1.  val Chars: reflect.internal.Chars.type
2.  val HashSet: reflect.internal.util.HashSet.type
3.  def returning[T](x: T)(f: (T) ⇒ Unit): T

   Apply a function and return the passed value

4.  def stackTraceHeadString(ex: Throwable): String

   A one line string which contains the class of the exception, the message if any, and the first non-Predef location in the stack trace (to exclude assert, require, etc.)

5.  def stackTraceString(ex: Throwable): String
6.  def stringFromReader(reader: Reader): String
7.  def stringFromStream(stream: (OutputStream) ⇒ Unit): String
8.  def stringFromWriter(writer: (PrintWriter) ⇒ Unit): String

   Generate a string using a routine that wants to write on a stream.

9.  lazy val trace: SimpleTracer
10.  def trackingThreads[T](body: ⇒ T): (T, Seq[Thread])

    Executes the code and returns the result and any threads which were created during its execution.

11.  def waitingForThreads[T](body: ⇒ T): T

    Execute code and then wait for all non-daemon Threads created and begun during its execution to complete.

12.  object ClassPath
13.  object DocStrings

    Utility methods for doc comment strings

14.  object Exceptional
15.  object ShowPickled extends Names

### Deprecated Value Members

1.  val FakePos: reflect.internal.util.FakePos.type
   Annotations
     @deprecated
   Deprecated

     (Since version 2.10.0) Moved to scala.reflect.internal.util.FakePos

2.  val NoPosition: reflect.internal.util.NoPosition.type
   Annotations
     @deprecated
   Deprecated

     (Since version 2.10.0) Moved to scala.reflect.internal.util.NoPosition

3.  val ScalaClassLoader: reflect.internal.util.ScalaClassLoader.type
   Annotations
     @deprecated
   Deprecated

     (Since version 2.11.0) Moved to scala.reflect.internal.util.ScalaClassLoader

### Inherited from AnyRef

### Inherited from Any

### Ungrouped