Trait/Object

com.loopfor.scalop

Opt

Related Docs: object Opt | package scalop

Permalink

trait Opt[+A] extends AnyRef

An option definition.

An instance of this class is typically constructed using the DSL when binding a processor function to an OptName using the ~> and ~>+ methods.

A

the value type

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Opt
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def default: Option[A]

    Permalink

    Returns the optional default value.

    Returns the optional default value.

    returns

    a Some containing the default value or None if not specified

  2. abstract def lname: Option[String]

    Permalink

    Returns the optional long name.

    Returns the optional long name.

    returns

    a Some containing the long name or None if not specified

  3. abstract def processor: OptProcessor[A]

    Permalink

    Returns the option processor.

    Returns the option processor.

    returns

    the option processor

  4. abstract def set[B >: A](value: B, optv: Map[String, Any]): Map[String, Any]

    Permalink

    Returns a copy of the option value map in which the given value is associated with both long and short names, where applicable.

    Returns a copy of the option value map in which the given value is associated with both long and short names, where applicable.

    B

    the value type

    value

    the value

    optv

    the current option value map

    returns

    a new option value map in which value is associated with both long and short names

  5. abstract def sname: Option[Char]

    Permalink

    Returns the optional short name.

    Returns the optional short name.

    returns

    a Some containing the short name or None if not specified

  6. abstract def ~~[B >: A](default: B): Opt[B]

    Permalink

    Returns a new option with a default value.

    Returns a new option with a default value.

    B

    the value type

    default

    the default value

    returns

    a new option with default as the default value

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. val name: String

    Permalink

    Returns the canonical name.

    Returns the canonical name.

    returns

    the canonical name, which is lname, if defined, otherwise sname converted to a string

  13. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  16. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  17. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped