Scala Compiler2.12.21 < 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 cmd
  Definition Classes
    tools
-  object Opt

  Machinery for what amounts to a command line specification DSL.

  Machinery for what amounts to a command line specification DSL. It is designed so the same specification trait can be used for two different purposes: generating a singleton specification object (trait Reference) and providing well typed vals for every configurable option in response to any given set of arguments (trait Instance).

  Definition Classes
    cmd
- Error
- Implicit
- Instance
- Reference

c

scala.tools.cmd.Opt

# Reference 

###

#### class Reference extends Implicit

Source
  Opt.scala

Linear Supertypes
Implicit, AnyRef, Any
 
Ordering

1. Alphabetic
2. By Inheritance

Inherited

1. Reference
2. Implicit
3. AnyRef
4. 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 Reference(programInfo: Info, options: Accumulators, name: String)

### 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 Reference to any2stringadd[Reference] performed by method any2stringadd in scala.Predef.
   Definition Classes
     any2stringadd
4.  def -->(body: ⇒ Unit): Boolean
   Definition Classes
     Reference → Implicit
5.  def --?: Boolean
   Definition Classes
     Reference → Implicit
6.  def --^[T](implicit arg0: FromString[T]): None.type
   Definition Classes
     Reference → Implicit
7.  def --|: None.type
   Definition Classes
     Reference → Implicit
8.  def ->[B](y: B): (Reference, B)
   Implicit
     This member is added by an implicit conversion from Reference to ArrowAssoc[Reference] performed by method ArrowAssoc in scala.Predef.
   Definition Classes
     ArrowAssoc
   Annotations
     @inline()
9.  def /(descr: String): String

   Help.

   Help.

   Definition Classes
     Reference → Implicit
10.  final def ==(arg0: Any): Boolean
    Definition Classes
      AnyRef → Any
11.  final def asInstanceOf[T0]: T0
    Definition Classes
      Any
12.  def choiceOf[T](choices: T*)(implicit arg0: FromString[T]): None.type
    Definition Classes
      Reference → Implicit
13.  def clone(): AnyRef
    Attributes
      protected[lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( ... ) @native()
14.  def defaultTo[T](default: T)(implicit arg0: FromString[T]): T

    Names.

    Names.

    Definition Classes
      Reference → Implicit
15.  def defaultToEnv(envVar: String): String
    Definition Classes
      Reference → Implicit
16.  def ensuring(cond: (Reference) ⇒ Boolean, msg: ⇒ Any): Reference
    Implicit
      This member is added by an implicit conversion from Reference to Ensuring[Reference] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
17.  def ensuring(cond: (Reference) ⇒ Boolean): Reference
    Implicit
      This member is added by an implicit conversion from Reference to Ensuring[Reference] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
18.  def ensuring(cond: Boolean, msg: ⇒ Any): Reference
    Implicit
      This member is added by an implicit conversion from Reference to Ensuring[Reference] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
19.  def ensuring(cond: Boolean): Reference
    Implicit
      This member is added by an implicit conversion from Reference to Ensuring[Reference] performed by method Ensuring in scala.Predef.
    Definition Classes
      Ensuring
20.  final def eq(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
21.  def equals(arg0: Any): Boolean
    Definition Classes
      AnyRef → Any
22.  def expandTo(args: String*): Unit
    Definition Classes
      Reference → Implicit
23.  def finalize(): Unit
    Attributes
      protected[lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( classOf[java.lang.Throwable] )
24.  final def getClass(): Class[_]
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
25.  def hashCode(): Int
    Definition Classes
      AnyRef → Any
    Annotations
      @native()
26.  final def isInstanceOf[T0]: Boolean
    Definition Classes
      Any
27.  val name: String
    Definition Classes
      Reference → Implicit
28.  final def ne(arg0: AnyRef): Boolean
    Definition Classes
      AnyRef
29.  final def notify(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
30.  final def notifyAll(): Unit
    Definition Classes
      AnyRef
    Annotations
      @native()
31.  def opt: String
    Attributes
      protected
    Definition Classes
      Implicit
32.  def optMap[T](f: (String) ⇒ T): Option[T]
    Definition Classes
      Implicit
33.  val options: Accumulators
34.  val programInfo: Info
    Definition Classes
      Reference → Implicit
35.  final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
      AnyRef
36.  def toString(): String
    Definition Classes
      AnyRef → Any
37.  final def wait(): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
38.  final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )
39.  final def wait(arg0: Long): Unit
    Definition Classes
      AnyRef
    Annotations
      @throws( ... ) @native()
40.  def →[B](y: B): (Reference, B)
    Implicit
      This member is added by an implicit conversion from Reference to ArrowAssoc[Reference] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
      ArrowAssoc

### Deprecated Value Members

1.  def formatted(fmtstr: String): String
   Implicit
     This member is added by an implicit conversion from Reference to StringFormat[Reference] 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.

### Inherited from Implicit

### Inherited from AnyRef

### Inherited from Any

### Inherited by implicit conversion any2stringadd from Reference to any2stringadd[Reference]

### Inherited by implicit conversion StringFormat from Reference to StringFormat[Reference]

### Inherited by implicit conversion Ensuring from Reference to Ensuring[Reference]

### Inherited by implicit conversion ArrowAssoc from Reference to ArrowAssoc[Reference]

### Ungrouped