package util
- Alphabetic
- By Inheritance
- util
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- abstract class CharArrayReader extends CharArrayReaderData
- trait CharArrayReaderData extends AnyRef
-
trait
ClassFileLookup
[T] extends AnyRef
Simple interface that allows us to abstract over how class file lookup is performed in different classpath representations.
-
abstract
class
ClassPath
[T] extends ClassFileLookup[T]
Represents a package which contains classes and other packages
-
trait
ClassRepresentation
[T] extends AnyRef
Represents classes which can be loaded with a ClassfileLoader and/or SourcefileLoader.
- class DeltaClassPath [T] extends MergedClassPath[T]
-
class
DirectoryClassPath
extends ClassPath[AbstractFile]
A directory (or a .jar file) containing classfiles and packages
- class EmptyAction extends () ⇒ Unit
- class FailedInterrupt extends Exception
- type HashSet[T >: Null <: AnyRef] = reflect.internal.util.HashSet[T]
-
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.
- class JavaCharArrayReader extends Iterator[Char] with Cloneable
-
class
JavaClassPath
extends MergedClassPath[AbstractFile]
The classpath when compiling with target:jvm.
The classpath when compiling with target:jvm. Binary files (classfiles) are represented as AbstractFile. nsc.io.ZipArchive is used to view zip/jar archives as directories.
-
class
MergedClassPath
[T] extends ClassPath[T]
A classpath unifying multiple class- and sourcepath entries.
- type Set[T <: AnyRef] = reflect.internal.util.Set[T]
-
class
SimpleTracer
extends AnyRef
A simple tracer
-
class
SourcePath
[T] extends ClassPath[T]
A Classpath containing source files
- implicit final class StackTraceOps extends AnyVal with StackTracing
- abstract class StatisticsInfo extends AnyRef
- class WorkScheduler extends AnyRef
-
type
AbstractFileClassLoader = reflect.internal.util.AbstractFileClassLoader
- Annotations
- @deprecated
- Deprecated
(Since version 2.11.0) Moved to scala.reflect.internal.util.AbstractFileClassLoader
-
type
BatchSourceFile = reflect.internal.util.BatchSourceFile
- Annotations
- @deprecated
- Deprecated
(Since version 2.10.0) Moved to scala.reflect.internal.util.BatchSourceFile
-
type
FakePos = reflect.internal.util.FakePos
- Annotations
- @deprecated
- Deprecated
(Since version 2.10.0) Moved to scala.reflect.internal.util.FakePos
-
type
Position = reflect.internal.util.Position
- Annotations
- @deprecated
- Deprecated
(Since version 2.10.0) Moved to scala.reflect.internal.util.Position
-
type
RangePosition = reflect.internal.util.RangePosition
- Annotations
- @deprecated
- Deprecated
(Since version 2.10.0) Moved to scala.reflect.internal.util.RangePosition
-
type
ScalaClassLoader = reflect.internal.util.ScalaClassLoader
- Annotations
- @deprecated
- Deprecated
(Since version 2.11.0) Moved to scala.reflect.internal.util.ScalaClassLoader
-
type
SourceFile = reflect.internal.util.SourceFile
- Annotations
- @deprecated
- Deprecated
(Since version 2.10.0) Moved to scala.reflect.internal.util.SourceFile
Value Members
- val Chars: reflect.internal.Chars.type
- val HashSet: reflect.internal.util.HashSet.type
-
def
returning[T](x: T)(f: (T) ⇒ Unit): T
Apply a function and return the passed value
-
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.)
- def stackTraceString(ex: Throwable): String
- def stringFromReader(reader: Reader): String
- def stringFromStream(stream: (OutputStream) ⇒ Unit): String
-
def
stringFromWriter(writer: (PrintWriter) ⇒ Unit): String
Generate a string using a routine that wants to write on a stream.
- lazy val trace: SimpleTracer
-
def
trackingThreads[T](body: ⇒ T): (T, Seq[Thread])
Executes the code and returns the result and any threads which were created during its execution.
-
def
waitingForThreads[T](body: ⇒ T): T
Execute code and then wait for all non-daemon Threads created and begun during its execution to complete.
-
object
ClassPath
This module provides star expansion of '-classpath' option arguments, behaves the same as java, see http://docs.oracle.com/javase/6/docs/technotes/tools/windows/classpath.html
- object ClassRepresentation
-
object
DocStrings
Utility methods for doc comment strings
- object Exceptional
- object ShowPickled extends Names
Deprecated Value Members
-
val
FakePos: reflect.internal.util.FakePos.type
- Annotations
- @deprecated
- Deprecated
(Since version 2.10.0) Moved to scala.reflect.internal.util.FakePos
-
val
NoPosition: reflect.internal.util.NoPosition.type
- Annotations
- @deprecated
- Deprecated
(Since version 2.10.0) Moved to scala.reflect.internal.util.NoPosition
-
val
ScalaClassLoader: reflect.internal.util.ScalaClassLoader.type
- Annotations
- @deprecated
- Deprecated
(Since version 2.11.0) Moved to scala.reflect.internal.util.ScalaClassLoader
The Scala compiler API.
The following resources are useful for Scala plugin/compiler development: