Trait/Object

scala.tools.refactoring.util.SourceWithMarker

SimpleMovement

Related Docs: object SimpleMovement | package SourceWithMarker

Permalink

trait SimpleMovement extends AnyRef

A Movement that can be applied in one direction.

The difference between a SimpleMovement and a Movement is that SimpleMovement is missing the backward method. Apart from that, the documentation for Movement applies. Note that movements can be combined with simple movements, so there is no need to implement a full movement unless you need it.

Self Type
SimpleMovement
Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SimpleMovement
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def compute(sourceWithMarker: SourceWithMarker): Seq[Int]

    Permalink

    The actual implementation of the movement

    The actual implementation of the movement

    Returns a possibly empty sequence of markers, that this movement could lead to, starting at the given argument. For example, the movement 'a'.atLeastOnce applied to the beginning of "aaa", would return Seq(2, 1). Note that elements at the start of the returned sequence are favored over elements coming later, so greedy movements should always return the biggest jumps at the beginning.

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. final def apply(sourceWithMarker: SourceWithMarker): Option[Int]

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def atLeastOnce: SimpleMovement

    Permalink
  7. def atMostNtimes(n: Int): SimpleMovement

    Permalink
  8. def butNot(other: SimpleMovement): SimpleMovement

    Permalink
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  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. final def getClass(): Class[_]

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

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

    Permalink
    Definition Classes
    Any
  16. def nTimes(n: Int): SimpleMovement

    Permalink
  17. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  20. def optional: SimpleMovement

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. def zeroOrMore: SimpleMovement

    Permalink
  27. final def |(other: SimpleMovement): SimpleMovement

    Permalink
  28. final def ||(other: SimpleMovement): SimpleMovement

    Permalink
  29. final def ~(other: SimpleMovement): SimpleMovement

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped