Class

de.fosd.typechef.conditional

One

Related Doc: package conditional

Permalink

case class One[+T](value: T) extends Conditional[T] with Product with Serializable

Linear Supertypes
Serializable, Serializable, Conditional[T], Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. One
  2. Serializable
  3. Serializable
  4. Conditional
  5. Product
  6. Equals
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new One(value: T)

    Permalink

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. def _simplify(context: FeatureExpr, fm: FeatureModel): Conditional[T]

    Permalink
    Attributes
    protected[de.fosd.typechef.conditional]
    Definition Classes
    Conditional
  5. def _toList(ctx: FeatureExpr): List[(FeatureExpr, T)]

    Permalink
    Attributes
    protected[de.fosd.typechef.conditional]
    Definition Classes
    OneConditional
  6. final def asInstanceOf[T0]: T0

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

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

    Permalink
    Definition Classes
    AnyRef
  9. def exists(f: (T) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    Conditional
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def flatMap[U](f: (T) ⇒ Conditional[U]): Conditional[U]

    Permalink

    apply a function to every alternative value of a Conditional data structure; may introduce new choices, results are merged into a new conditional

    apply a function to every alternative value of a Conditional data structure; may introduce new choices, results are merged into a new conditional

    Definition Classes
    OneConditional
  12. def flatten[U >: T](f: (FeatureExpr, U, U) ⇒ U): U

    Permalink

    flattens datastructure from a Conditional[T] to a single T with the provided merge function

    flattens datastructure from a Conditional[T] to a single T with the provided merge function

    f

    flatten function

    Definition Classes
    OneConditional
  13. def forall(f: (T) ⇒ Boolean): Boolean

    Permalink
    Definition Classes
    OneConditional
  14. def foreach[U](f: (T) ⇒ U): Unit

    Permalink
    Definition Classes
    OneConditional
  15. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    Any
  17. def map[U](f: (T) ⇒ U): Conditional[U]

    Permalink

    apply a function to every alternative value of a Conditional data structure

    apply a function to every alternative value of a Conditional data structure

    Definition Classes
    Conditional
  18. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  21. def select(selectedFeatures: Set[String]): T

    Permalink

    given a configuration, returns the corresponding value for that configuration

    given a configuration, returns the corresponding value for that configuration

    evaluates the conditions in choices for a given feature selection (all features not provided are assumed deselected) selectedFeatures provided as a list of names (how they would be created with createDefinedExternal)

    Definition Classes
    OneConditional
    See also

    FeatureExpr.evaluate

  22. def simplify(fm: FeatureModel): Conditional[T]

    Permalink
    Definition Classes
    Conditional
  23. def simplify(ctx: FeatureExpr): Conditional[T]

    Permalink
    Definition Classes
    Conditional
  24. def simplify: Conditional[T]

    Permalink

    simplify rewrites choices, removing infeasible paths and possibly equal entries.

    simplify rewrites choices, removing infeasible paths and possibly equal entries. this is an expensive operation reasoning about variability

    a simplified data structure should not contain infeasible entries, but may still contain duplicate entries under different conditions.

    Definition Classes
    Conditional
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. def toList: List[(FeatureExpr, T)]

    Permalink

    Function toList returns a list with all conditional values of this data structure, each value with a corresponding condition

    Function toList returns a list with all conditional values of this data structure, each value with a corresponding condition

    Definition Classes
    Conditional
  27. def toOptList: List[Opt[T]]

    Permalink
    Definition Classes
    Conditional
  28. val value: T

    Permalink
  29. def vflatMap[U](ctx: FeatureExpr, f: (FeatureExpr, T) ⇒ Conditional[U]): Conditional[U]

    Permalink

    apply a function to every alternative value of a Conditional data structure, propagating the current variability context in the process; may introduce new choices, results are merged into a new conditional

    apply a function to every alternative value of a Conditional data structure, propagating the current variability context in the process; may introduce new choices, results are merged into a new conditional

    Definition Classes
    OneConditional
  30. def vmap[U](ctx: FeatureExpr, f: (FeatureExpr, T) ⇒ U): Conditional[U]

    Permalink

    apply a function to every alternative value of a Conditional data structure, propagating the current variability context in the process

    apply a function to every alternative value of a Conditional data structure, propagating the current variability context in the process

    Definition Classes
    Conditional
  31. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. def when(f: (T) ⇒ Boolean): FeatureExpr

    Permalink

    returns the condition when predicate f is true

    returns the condition when predicate f is true

    Definition Classes
    OneConditional

Deprecated Value Members

  1. def mapf: (FeatureExpr, (FeatureExpr, T) ⇒ Nothing) ⇒ Conditional[Nothing]

    Permalink
    Definition Classes
    Conditional
    Annotations
    @deprecated
    Deprecated

    (Since version 0.4.0) mapf is misnamed and should be replaced by vmap

  2. def mapfr: (FeatureExpr, (FeatureExpr, T) ⇒ Conditional[Nothing]) ⇒ Conditional[Nothing]

    Permalink
    Definition Classes
    Conditional
    Annotations
    @deprecated
    Deprecated

    (Since version 0.4.0) mapfr is misnamed and should be replaced by vflatMap

  3. def mapr: ((T) ⇒ Conditional[Nothing]) ⇒ Conditional[Nothing]

    Permalink
    Definition Classes
    Conditional
    Annotations
    @deprecated
    Deprecated

    (Since version 0.4.0) mapr is misnamed and should be replaced by flatMap

Inherited from Serializable

Inherited from Serializable

Inherited from Conditional[T]

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped