Class/Object

it.unich.scalafix

BoxAssignment

Related Docs: object BoxAssignment | package scalafix

Permalink

abstract class BoxAssignment[-U, V] extends PartialFunction[U, Box[V]]

A BoxAssignment maps a subset of unknowns to a Box. When isDefinedAt(u) is false for a given unknown u, the corresponding apply(u) should be a right box.

Like it was the case for Box, a BoxAssignent is also a blueprint for buildind equivalent BoxAssignments. Each BoxAssignmant has a copy method which should produce a functionally equivalent copy of this. The copy method should try to minimize object duplication.

Self Type
BoxAssignment[U, V]
Linear Supertypes
PartialFunction[U, Box[V]], (U) ⇒ Box[V], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BoxAssignment
  2. PartialFunction
  3. Function1
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BoxAssignment()

    Permalink

Abstract Value Members

  1. abstract def apply(v1: U): Box[V]

    Permalink
    Definition Classes
    Function1
  2. abstract def boxesAreIdempotent: Boolean

    Permalink

    Returns true if all returned boxes are idempotent.

  3. abstract def boxesAreImmutable: Boolean

    Permalink

    Returns true if all boxes are immutable

  4. abstract def boxesAreRight: Boolean

    Permalink

    Returns true if all boxes are right boxes.

  5. abstract def copy: BoxAssignment[U, V]

    Permalink

    Returns a copy of this box assignment.

    Returns a copy of this box assignment. An immutable box assignment may just returns itself, but a mutable one should produce a copy of itself.

  6. abstract def isDefinedAt(x: U): Boolean

    Permalink
    Definition Classes
    PartialFunction
  7. abstract def isEmpty: Boolean

    Permalink

    Returns true if the assignment is empty, i.e., it is undefined for all program points.

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 andThen[C](k: (Box[V]) ⇒ C): PartialFunction[U, C]

    Permalink
    Definition Classes
    PartialFunction → Function1
  5. def applyOrElse[A1 <: U, B1 >: Box[V]](x: A1, default: (A1) ⇒ B1): B1

    Permalink
    Definition Classes
    PartialFunction
  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. def compose[A](g: (A) ⇒ U): (A) ⇒ Box[V]

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  9. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

    Permalink
    Definition Classes
    Any
  15. def lift: (U) ⇒ Option[Box[V]]

    Permalink
    Definition Classes
    PartialFunction
  16. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  19. def orElse[A1 <: U, B1 >: Box[V]](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]

    Permalink
    Definition Classes
    PartialFunction
  20. def restrict[U1 <: U](domain: (U1) ⇒ Boolean): BoxAssignment[U1, V]

    Permalink

    Restrict the domain of this box assignment.

    Restrict the domain of this box assignment. The new domain is the intersection of the old domain and the set whose characteristic function is domain

  21. def runWith[U](action: (Box[V]) ⇒ U): (U) ⇒ Boolean

    Permalink
    Definition Classes
    PartialFunction
  22. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from PartialFunction[U, Box[V]]

Inherited from (U) ⇒ Box[V]

Inherited from AnyRef

Inherited from Any

Ungrouped