org.kiama.util

Positions

object Positions extends Memoiser

Record of source positions that correspond to program elements.

Source
Positions.scala
Linear Supertypes
Memoiser, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Positions
  2. Memoiser
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. trait IdMemoised[T, U] extends MemoisedBase[T, U]

    A memoised entity that weakly holds onto its keys and uses identity to compare them.

    A memoised entity that weakly holds onto its keys and uses identity to compare them.

    Definition Classes
    Memoiser
  2. trait Memoised[T, U] extends MemoisedBase[T, U]

    A memoised entity that uses equality to compare keys.

    A memoised entity that uses equality to compare keys.

    Definition Classes
    Memoiser
  3. trait MemoisedBase[T, U] extends AnyRef

    Common interface for encapsulation of memoisation for a single memoised entity backed by a configurable cache.

    Common interface for encapsulation of memoisation for a single memoised entity backed by a configurable cache.

    Definition Classes
    Memoiser
  4. class PositionMap extends IdMemoised[Any, Position]

    Map between a value and a source code position.

Value Members

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

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def dupPos[T](a: Any, t: T): T

    Set the start and finish positions of t to the positions of a if it has them.

    Set the start and finish positions of t to the positions of a if it has them. Return t.

  7. final def eq(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    AnyRef → Any
  11. def getFinish[T](t: T): Position

    Get the finish position of t.

    Get the finish position of t. If it doesn't have one, return NoPosition.

  12. def getStart[T](t: T): Position

    Get the start position of t.

    Get the start position of t. If it doesn't have one, return NoPosition.

  13. def getStartWhite[T](t: T): Position

    Get the start whitespace position of t.

    Get the start whitespace position of t. If it doesn't have one, return NoPosition.

  14. def hashCode(): Int

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

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

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

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

    Definition Classes
    AnyRef
  19. def positionAt(l: Int, c: Int): Position

    Return a position value with starting position given by line l, column c and empty line contents.

    Return a position value with starting position given by line l, column c and empty line contents. This method is most useful for testing low-level messages and is not normally be needed in application code.

  20. def resetMemo(): Unit

    Lazily reset all memoisation tables.

    Lazily reset all memoisation tables. The actual resets will only happen the next time the value of each attribute is accessed.

    Definition Classes
    Memoiser
  21. def setFinish[T](t: T, p: Position): Unit

    Set the finish position of t to p if it has not already been set.

  22. def setStart[T](t: T, p: Position): Unit

    Set the start position of t to p if it has not already been set.

  23. def setStartWhite[T](t: T, p: Position): Unit

    Set the start whitespace position of t to p if it has not already been set.

  24. def subSource(s: OffsetPosition, f: OffsetPosition): CharSequence

    Get the source text associated with the subsequence of a source between given starting and finishing offset positions.

    Get the source text associated with the subsequence of a source between given starting and finishing offset positions. The two positions are assumed to reference the same source.

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

    Definition Classes
    AnyRef
  26. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Memoiser

Inherited from AnyRef

Inherited from Any

Ungrouped