Class

org.bitbucket.inkytonik.kiama.attribution.AttributionCore

CachedParamAttribute

Related Doc: package AttributionCore

Permalink

class CachedParamAttribute[A, T, U] extends (A) ⇒ Attribute[T, U] with Memoised[ParamAttributeKey, Option[U]]

A variation of the CachedAttribute class for parameterised attributes.

Self Type
CachedParamAttribute[A, T, U]
Source
AttributionCore.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CachedParamAttribute
  2. Memoised
  3. MemoisedBase
  4. Function1
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CachedParamAttribute(name: String, f: (A) ⇒ (T) ⇒ U)

    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 andThen[A](g: (Attribute[T, U]) ⇒ A): (A) ⇒ A

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  5. def apply(arg: A): Attribute[T, U]

    Permalink

    Return the value of this attribute for node t, raising an error if it depends on itself.

    Return the value of this attribute for node t, raising an error if it depends on itself.

    Definition Classes
    CachedParamAttribute → Function1
  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) ⇒ A): (A) ⇒ Attribute[T, U]

    Permalink
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  9. def dup(t1: ParamAttributeKey, t2: ParamAttributeKey): Unit

    Permalink

    Duplicate an entry if possible.

    Duplicate an entry if possible. If t1 has a memoised value associated with it, set the value associated with t2 to the same value. If there is no value associated with t1, do nothing.

    Definition Classes
    MemoisedBase
  10. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def get(t: ParamAttributeKey): Option[Option[U]]

    Permalink

    Return the value stored at key t as an option.

    Return the value stored at key t as an option.

    Definition Classes
    MemoisedBase
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def getWithDefault(t: ParamAttributeKey, u: ⇒ Option[U]): Option[U]

    Permalink

    Return the value stored at key t if there is one, otherwise return u.

    Return the value stored at key t if there is one, otherwise return u. u is only evaluated if necessary.

    Definition Classes
    MemoisedBase
  16. def hasBeenComputedAt(arg: A, t: T): Boolean

    Permalink

    Has the value of this attribute at t already been computed for arg or not?

  17. def hasBeenComputedAt(t: ParamAttributeKey): Boolean

    Permalink

    Has the value at t already been computed or not? By default, does the memo table contain a value for t?

    Has the value at t already been computed or not? By default, does the memo table contain a value for t?

    Definition Classes
    MemoisedBase
  18. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  20. val memo: Cache[AnyRef, AnyRef]

    Permalink

    The memo table.

    The memo table.

    Definition Classes
    MemoisedMemoisedBase
  21. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  24. def put(t: ParamAttributeKey, u: Option[U]): Unit

    Permalink

    Store the value u under the key t.

    Store the value u under the key t.

    Definition Classes
    MemoisedBase
  25. def putIfNotPresent(t: ParamAttributeKey, u: ⇒ Option[U]): Unit

    Permalink

    Store the value u under the key t if t does not already have an associated value.

    Store the value u under the key t if t does not already have an associated value. u is only evaluated if necessary.

    Definition Classes
    MemoisedBase
  26. def reset(): Unit

    Permalink

    Immediately reset the memo table.

    Immediately reset the memo table.

    Definition Classes
    MemoisedBase
  27. def resetAt(arg: A, t: T): Unit

    Permalink

    Reset this attribute's cache at t for just parameter value arg.

  28. def resetAt(t: ParamAttributeKey): Unit

    Permalink

    Immediately reset the memo table at t.

    Immediately reset the memo table at t.

    Definition Classes
    MemoisedBase
  29. def size(): Long

    Permalink

    The number of entries in the memo table.

    The number of entries in the memo table.

    Definition Classes
    MemoisedBase
  30. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from AttributionCore.Memoised[ParamAttributeKey, Option[U]]

Inherited from AttributionCore.MemoisedBase[ParamAttributeKey, Option[U]]

Inherited from (A) ⇒ Attribute[T, U]

Inherited from AnyRef

Inherited from Any

Ungrouped