Class

de.fosd.typechef.conditional

Conditional

Related Doc: package conditional

Permalink

abstract class Conditional[+T] extends Product

Linear Supertypes
Product, Equals, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Conditional
  2. Product
  3. Equals
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Conditional()

    Permalink

Abstract Value Members

  1. abstract def _toList(ctx: FeatureExpr): List[(FeatureExpr, T)]

    Permalink
    Attributes
    protected[de.fosd.typechef.conditional]
  2. abstract def canEqual(that: Any): Boolean

    Permalink
    Definition Classes
    Equals
  3. abstract 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

  4. abstract 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

  5. abstract def forall(f: (T) ⇒ Boolean): Boolean

    Permalink
  6. abstract def foreach[U](f: (T) ⇒ U): Unit

    Permalink
  7. abstract def productArity: Int

    Permalink
    Definition Classes
    Product
  8. abstract def productElement(n: Int): Any

    Permalink
    Definition Classes
    Product
  9. abstract 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)

    See also

    FeatureExpr.evaluate

  10. abstract 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

  11. abstract def when(f: (T) ⇒ Boolean): FeatureExpr

    Permalink

    returns the condition when predicate f is true

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

    Permalink
    Attributes
    protected[de.fosd.typechef.conditional]
  5. final def asInstanceOf[T0]: T0

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

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

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

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

    Permalink
  10. def finalize(): Unit

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

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

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

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

    Permalink

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  18. def productIterator: Iterator[Any]

    Permalink
    Definition Classes
    Product
  19. def productPrefix: String

    Permalink
    Definition Classes
    Product
  20. def simplify(fm: FeatureModel): Conditional[T]

    Permalink
  21. def simplify(ctx: FeatureExpr): Conditional[T]

    Permalink
  22. 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.

  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. 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

  25. def toOptList: List[Opt[T]]

    Permalink
  26. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  27. 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

  28. final def wait(): Unit

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

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

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

Deprecated Value Members

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

    Permalink
    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
    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
    Annotations
    @deprecated
    Deprecated

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

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped