fr.splayce.rel.util.TrackString

Subst

case class Subst (from: Interval, to: Interval) extends Product with Serializable

A Substitution from an Interval in the original String to an Interval in the new String.

Linear Supertypes
Serializable, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Subst
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Subst (from: Interval, to: Interval)

Value Members

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

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

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

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

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

    Attributes
    final
    Definition Classes
    Any
  6. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  7. def canEqual (arg0: Any): Boolean

    Definition Classes
    Subst → Equals
  8. def carved (by: List[Subst]): (List[Subst], List[Subst])

    Build a new Subst, carving it according to the given additional Substs.

    Build a new Subst, carving it according to the given additional Substs.

    by

    remaining additional Substs when this is reached

    returns

    (carved pieces, the tail part of by that is still relevant to the carving of the following Substs)

    Attributes
    protected[util]
  9. def carved (by: Subst): (Option[Subst], Option[Subst])

    Build a new Subst, carving this if it crosses the boundaries of by (additional edit), or simply shift or absorb it otherwise.

    Build a new Subst, carving this if it crosses the boundaries of by (additional edit), or simply shift or absorb it otherwise.

    For example, a simple shift happens when:

     this = [5,7) -> [5,8)
     by   = [1,4) -> [1,2)
     this.to is after by.from
     thus, shift this.to, by by.to.end - by.from.end = -2
     this.to will be [5 - 2, 8 - 2) = [3, 6)
     and there is no unprocessed part
    

    But with a border crossing, it becomes:

     this = [1,6) -> [1,8)
     by   = [3,5) -> [3,7)
     this.to overlaps by.from
     thus, this.to will be cut (and its right piece, shifted by 2):
     - unprocessed yet: [1,6) -> [1,3)
     - (in the middle is by.from)
     - processed: [1,6) -> [5 + 2, 8 + 2)
    
    returns

    (the unprocessed part of this, the processed part of this)

    Attributes
    protected[util]
  10. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  12. def equals (arg0: Any): Boolean

    Definition Classes
    Subst → Equals → AnyRef → Any
  13. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  14. val from : Interval

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  16. def hashCode (): Int

    Definition Classes
    Subst → AnyRef → Any
  17. def isInstanceOf [T0] : Boolean

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

    Attributes
    final
    Definition Classes
    AnyRef
  19. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  20. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  21. def productArity : Int

    Definition Classes
    Subst → Product
  22. def productElement (arg0: Int): Any

    Definition Classes
    Subst → Product
  23. def productIterator : Iterator[Any]

    Definition Classes
    Product
  24. def productPrefix : String

    Definition Classes
    Subst → Product
  25. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  26. val to : Interval

  27. lazy val toString : String

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Deprecated Value Members

  1. def productElements : Iterator[Any]

    Definition Classes
    Product
    Annotations
    @deprecated
    Deprecated

    use productIterator instead

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any