Scala Compiler2.13.9 < 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 settings
  Definition Classes
    nsc
-  class MutableSettings extends reflect.internal.settings.MutableSettings with AbsSettings with ScalaSettings

  A mutable Settings object.

  A mutable Settings object.

  Definition Classes
    settings
- AbsSetting
- AbsSettingValue
- BooleanSetting
- CachePolicy
- ChoiceSetting
- EnableSettings
- IntSetting
- InternalSetting
- LintWarnings
- MacroExpand
- MultiChoiceEnumeration
- MultiChoiceSetting
- MultiStringSetting
- OutputDirs
- OutputSetting
- PathSetting
- PerformanceWarnings
- PhasesSetting
- PrefixSetting
- ScalaVersionSetting
- Setting
- SettingValue
- StringSetting
- UnusedWarnings
- XxmlSettings
- languageFeatures
- mixinForwarderChoices
- optChoices
- optWarningsChoices

c

scala.tools.nsc.settings.MutableSettings

# OutputDirs

###

#### class OutputDirs extends AnyRef

A class for holding mappings from source directories to their output location. This functionality can be accessed only programmatically. The command line compiler uses a single output location, but tools may use this functionality to set output location per source directory.

Source
  MutableSettings.scala

Linear Supertypes
AnyRef, Any
Type Hierarchy

Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. OutputDirs
2. AnyRef
3. Any

Implicitly

1. by any2stringadd
2. by StringFormat
3. by Ensuring
4. by ArrowAssoc

1. Hide All
2. Show All

Visibility

1. Public
2. Protected

### Instance Constructors

1.  new OutputDirs()

### 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 OutputDirs toany2stringadd[OutputDirs] performed by method any2stringadd in scala.Predef.
   Definition Classes
     any2stringadd
4.  def ->[B](y: B): (OutputDirs, B)
   Implicit
     This member is added by an implicit conversion from OutputDirs toArrowAssoc[OutputDirs] performed by method ArrowAssoc in scala.Predef.
   Definition Classes
     ArrowAssoc
   Annotations
     @inline()
5.  final def ==(arg0: Any): Boolean
   Definition Classes
     AnyRef → Any
6.  def add(src: AbstractFile, dst: AbstractFile): Unit
7.  def add(srcDir: String, outDir: String): Unit

   Add a destination directory for sources found under `srcDir`.

   Add a destination directory for sources found under `srcDir`. Both directories should exist.

8.  final def asInstanceOf[T0]: T0
   Definition Classes
     Any
9.  def clone(): AnyRef
   Attributes
     protected[lang]
   Definition Classes
     AnyRef
   Annotations
     @throws(classOf[java.lang.CloneNotSupportedException]) @native()
10.  def ensuring(cond: (OutputDirs) => Boolean, msg: => Any): OutputDirs
    Implicit
      This member is added by an implicit conversion from OutputDirs toEnsuring[OutputDirs] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
11.  def ensuring(cond: (OutputDirs) => Boolean): OutputDirs
    Implicit
      This member is added by an implicit conversion from OutputDirs toEnsuring[OutputDirs] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
12.  def ensuring(cond: Boolean, msg: => Any): OutputDirs
    Implicit
      This member is added by an implicit conversion from OutputDirs toEnsuring[OutputDirs] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
13.  def ensuring(cond: Boolean): OutputDirs
    Implicit
      This member is added by an implicit conversion from OutputDirs toEnsuring[OutputDirs] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
14.  final def eq(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
15.  def equals(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef → Any
16.  def finalize(): Unit
    Attributes
      protected[lang]
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.Throwable])
17.  final def getClass(): Class[_ <: AnyRef]
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
18.  def getSingleOutput: Option[AbstractFile]
19.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
20.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
21.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
22.  final def notify(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
23.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
24.  def outputDirFor(src: AbstractFile): AbstractFile

    Return the output directory for the given file.

25.  def outputs: List[(AbstractFile, AbstractFile)]

    Return the list of source-destination directory pairs.

26.  def setSingleOutput(dir: AbstractFile): Unit

    Set the single output directory.

    Set the single output directory. From now on, all files will be dumped in there, regardless of previous calls to 'add'.

27.  def setSingleOutput(outDir: String): Unit

    Set the single output directory.

    Set the single output directory. From now on, all files will be dumped in there, regardless of previous calls to 'add'.

28.  def srcFilesFor(classFile: AbstractFile, srcPath: String): List[AbstractFile]

    Return the source file path(s) which correspond to the given classfile path and SourceFile attribute value, subject to the condition that source files are arranged in the filesystem according to Java package layout conventions.

    Return the source file path(s) which correspond to the given classfile path and SourceFile attribute value, subject to the condition that source files are arranged in the filesystem according to Java package layout conventions.

    The given classfile path must be contained in at least one of the specified output directories. If it does not then this method returns Nil.

    Note that the source file is not required to exist, so assuming a valid classfile path this method will always return a list containing at least one element.

    Also that if two or more source path elements target the same output directory there will be two or more candidate source file paths.

29.  final def synchronized[T0](arg0: => T0): T0
    Definition Classes
      AnyRef
30.  def toString(): String
    Definition Classes
      AnyRef → Any
31.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.InterruptedException])
32.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.InterruptedException])
33.  final def wait(arg0: Long): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws(classOf[java.lang.InterruptedException]) @native()

### Deprecated Value Members

1.  def formatted(fmtstr: String): String
   Implicit
     This member is added by an implicit conversion from OutputDirs toStringFormat[OutputDirs] performed by method StringFormat in scala.Predef.
   Definition Classes
     StringFormat
   Annotations
     @deprecated @inline()
   Deprecated

     (Since version 2.12.16) Use `formatString.format(value)` instead of `value.formatted(formatString)`, or use the `f""` string interpolator. In Java 15 and later, `formatted` resolves to the new method in String which has reversed parameters.

2.  def →[B](y: B): (OutputDirs, B)
   Implicit
     This member is added by an implicit conversion from OutputDirs toArrowAssoc[OutputDirs] performed by method ArrowAssoc in scala.Predef.
   Definition Classes
     ArrowAssoc
   Annotations
     @deprecated
   Deprecated

     (Since version 2.13.0) Use `->` instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

### Inherited from AnyRef

### Inherited from Any

### Inherited by implicit conversion any2stringadd fromOutputDirs to any2stringadd[OutputDirs]

### Inherited by implicit conversion StringFormat fromOutputDirs to StringFormat[OutputDirs]

### Inherited by implicit conversion Ensuring fromOutputDirs to Ensuring[OutputDirs]

### Inherited by implicit conversion ArrowAssoc fromOutputDirs to ArrowAssoc[OutputDirs]

### Ungrouped