org.kiama.attribution.DynamicAttribution

ComposedPartialFunction

class ComposedPartialFunction[T, U] extends ==>[T, U]

A partial function composed of an ordered, mutable buffer of PartialFunction instances. f is the iniital single occupant of the buffer.

Source
DynamicAttribution.scala
Linear Supertypes
PartialFunction[T, U], (T) ⇒ U, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ComposedPartialFunction
  2. PartialFunction
  3. Function1
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ComposedPartialFunction(f: ==>[T, U])

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +=(g: ==>[T, U]): Unit

    Add g to the end of the buffer.

  5. def -=(g: ==>[T, U]): Unit

    Remove g from the buffer if it is there.

    Remove g from the buffer if it is there. Otherwise, do nothing.

  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. def andThen[C](k: (U) ⇒ C): PartialFunction[T, C]

    Definition Classes
    PartialFunction → Function1
  9. def apply(t: T): U

    Apply the buffered functions to the value t in the order that they appear in the buffer.

    Apply the buffered functions to the value t in the order that they appear in the buffer. Return the value of the first such function that is defined at t. If no function is defined at t, throw a MatchError exception.

    Definition Classes
    ComposedPartialFunction → Function1
  10. def applyOrElse[A1 <: T, B1 >: U](x: A1, default: (A1) ⇒ B1): B1

    Definition Classes
    PartialFunction
  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. def compose[A](g: (A) ⇒ T): (A) ⇒ U

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  17. val functions: ArrayBuffer[==>[T, U]]

  18. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  20. def isDefinedAt(t: T): Boolean

    Is there a function in the buffer that is defined at t?

    Is there a function in the buffer that is defined at t?

    Definition Classes
    ComposedPartialFunction → PartialFunction
  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. def lift: (T) ⇒ Option[U]

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

    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  26. def orElse[A1 <: T, B1 >: U](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]

    Definition Classes
    PartialFunction
  27. def run[U](x: T)(action: (U) ⇒ U): Boolean

    Definition Classes
    PartialFunction
  28. def runWith[U](action: (U) ⇒ U): (T) ⇒ Boolean

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

    Definition Classes
    AnyRef
  30. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from PartialFunction[T, U]

Inherited from (T) ⇒ U

Inherited from AnyRef

Inherited from Any

No Group