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
- Alphabetic
- By Inheritance
- Opt
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
default: Option[A]
Returns the optional default value.
Returns the optional default value.
- returns
a
Some
containing the default value orNone
if not specified
-
abstract
def
lname: Option[String]
Returns the optional long name.
Returns the optional long name.
- returns
a
Some
containing the long name orNone
if not specified
-
abstract
def
processor: OptProcessor[A]
Returns the option processor.
Returns the option processor.
- returns
the option processor
-
abstract
def
set[B >: A](value: B, optv: Map[String, Any]): Map[String, Any]
Returns a copy of the option value map in which the given value is associated with both long and short names, where applicable.
-
abstract
def
sname: Option[Char]
Returns the optional short name.
Returns the optional short name.
- returns
a
Some
containing the short name orNone
if not specified
-
abstract
def
~~[B >: A](default: B): Opt[B]
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
name: String
Returns the canonical name.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )