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. Hide All
  2. Show all
  1. ComposedPartialFunction
  2. PartialFunction
  3. Function1
  4. AnyRef
  5. Any
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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def clone(): AnyRef

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

    Definition Classes
    Function1
  13. final def eq(arg0: AnyRef): Boolean

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

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

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

  17. final def getClass(): java.lang.Class[_]

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

    Definition Classes
    AnyRef → Any
  19. 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
  20. final def isInstanceOf[T0]: Boolean

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

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

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

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

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

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

    Definition Classes
    AnyRef
  27. def toString(): String

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()
  30. 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