sealed trait DefinableSetting[S] extends AnyRef
Mixin trait for adding convenience vocabulary associated with applying a setting to a configuration item.
- Alphabetic
- By Inheritance
- DefinableSetting
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
- abstract def scopedKey: Def.ScopedKey[S]
Concrete Value Members
- final macro def <<=(app: Def.Initialize[S]): Def.Setting[S]
-
final
def
?: Def.Initialize[Option[S]]
Creates an Def.Initialize with value
scala.None
if there was no previous definition of this key, andscala.Some(value)
if a definition exists.Creates an Def.Initialize with value
scala.None
if there was no previous definition of this key, andscala.Some(value)
if a definition exists. Useful for when you want to use the existence of one setting in order to define another setting.- returns
currently bound value wrapped in
Initialize[Some[T]]
, orInitialize[None]
if unbound.
-
final
def
??[T >: S](or: ⇒ T): Def.Initialize[T]
Like ?, but with a call-by-name parameter rather than an existing Def.Initialize.
Like ?, but with a call-by-name parameter rather than an existing Def.Initialize. Useful when you want to have a value computed when no value is bound to this key.
- or
by-name expression evaluated when a value is needed.
- returns
currently bound setting value, or the result of
or
if unbound.
-
final
def
get(settings: Settings[Scope]): Option[S]
From the given
Settings
, extract the value bound to this key. -
final
def
or[T >: S](i: Def.Initialize[T]): Def.Initialize[T]
Creates an Def.Initialize with value bound to this key, or returns
i
parameter if unbound.Creates an Def.Initialize with value bound to this key, or returns
i
parameter if unbound.- i
value to return if this setting doesn't have a value.
- returns
currently bound setting value, or
i
if unbound.
-
final
def
set(app: Def.Initialize[S], source: SourcePosition): Def.Setting[S]
Internally used function for setting a value along with the
.sbt
file location where it is defined.