Packages

c

scala.tools.nsc.settings.MutableSettings

MultiChoiceEnumeration

abstract class MultiChoiceEnumeration extends Enumeration

Each MultiChoiceSetting takes a MultiChoiceEnumeration as domain. The enumeration may use the Choice class to define values, or simply use the default Value constructor:

object SettingDomain extends MultiChoiceEnumeration { val arg1, arg2 = Value }

Or

object SettingDomain extends MultiChoiceEnumeration { val arg1 = Choice("arg1", "help") val arg2 = Choice("arg2", "help") }

Choices with a non-empty expandsTo enable other options. Note that expanding choices are not present in the multiChoiceSetting.value set, only their expansion.

Source
MutableSettings.scala
Linear Supertypes
Enumeration, Serializable, java.io.Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MultiChoiceEnumeration
  2. Enumeration
  3. Serializable
  4. Serializable
  5. AnyRef
  6. 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

Instance Constructors

  1. new MultiChoiceEnumeration()

Type Members

  1. case class Choice(name: String, help: String = "", expandsTo: List[Choice] = Nil) extends Val with Product with Serializable
  2. abstract class Value extends Ordered[Value] with Serializable
    Definition Classes
    Enumeration
    Annotations
    @SerialVersionUID()
  3. class ValueSet extends AbstractSet[Value] with SortedSet[Value] with SortedSetLike[Value, ValueSet] with Serializable
    Definition Classes
    Enumeration

Value Members

  1. final def apply(x: Int): Value
    Definition Classes
    Enumeration
  2. final def maxId: Int
    Definition Classes
    Enumeration
  3. def toString(): String
    Definition Classes
    Enumeration → AnyRef → Any
  4. def values: ValueSet
    Definition Classes
    Enumeration
  5. final def withName(s: String): Value
    Definition Classes
    Enumeration
  6. object ValueSet extends Serializable
    Definition Classes
    Enumeration