Packages

sealed abstract class Patch extends Product

An immutable sealed data structure that describes how to rewrite and lint a source file.

Documentation: https://scalacenter.github.io/scalafix/docs/developers/patch.html

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Patch
  2. Product
  3. Equals
  4. AnyRef
  5. Any
Implicitly
  1. by XtensionScalafixProductInspect
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def canEqual(that: Any): Boolean
    Definition Classes
    Equals
  2. abstract def productArity: Int
    Definition Classes
    Product
  3. abstract def productElement(n: Int): Any
    Definition Classes
    Product

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: Option[Patch]): Patch

    Merge this patch together with the other patch if non-empty.

  4. def +(other: Patch): Patch

    Merge this patch together with the other patch.

  5. def ++(other: Iterable[Patch]): Patch

    Merge this patch together with the other patches.

  6. def ->[B](y: B): (Patch, B)
    Implicit
    This member is added by an implicit conversion from Patch toArrowAssoc[Patch] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  7. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def atomic: Patch

    Skip this entire patch if a part of it is disabled with // scalafix:off

  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  11. def ensuring(cond: (Patch) => Boolean, msg: => Any): Patch
    Implicit
    This member is added by an implicit conversion from Patch toEnsuring[Patch] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: (Patch) => Boolean): Patch
    Implicit
    This member is added by an implicit conversion from Patch toEnsuring[Patch] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean, msg: => Any): Patch
    Implicit
    This member is added by an implicit conversion from Patch toEnsuring[Patch] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean): Patch
    Implicit
    This member is added by an implicit conversion from Patch toEnsuring[Patch] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  18. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from Patch toStringFormat[Patch] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. def isEmpty: Boolean

    Returns true if this patch is equal to Patch.empty, false otherwise.

    Returns true if this patch is equal to Patch.empty, false otherwise.

    Note, may return false for patches that produce empty diffs. For example, a Patch.replaceSymbol returns false even if the symbol from is not referenced in the code resulting in an empty diff.

  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. def nonEmpty: Boolean

  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. def productElementName(n: Int): String
    Definition Classes
    Product
  28. def productElementNames: Iterator[String]
    Definition Classes
    Product
  29. def productIterator: Iterator[Any]
    Definition Classes
    Product
  30. def productPrefix: String
    Definition Classes
    Product
  31. def structure: String
    Implicit
    This member is added by an implicit conversion from Patch toscalafix.XtensionScalafixProductInspect performed by method XtensionScalafixProductInspect in scalafix.util.Api.
    Definition Classes
    XtensionScalafixProductInspect
  32. def structureLabeled(printWidth: Int): String
    Implicit
    This member is added by an implicit conversion from Patch toscalafix.XtensionScalafixProductInspect performed by method XtensionScalafixProductInspect in scalafix.util.Api.
    Definition Classes
    XtensionScalafixProductInspect
  33. def structureLabeled: String
    Implicit
    This member is added by an implicit conversion from Patch toscalafix.XtensionScalafixProductInspect performed by method XtensionScalafixProductInspect in scalafix.util.Api.
    Definition Classes
    XtensionScalafixProductInspect
  34. def structureWidth(printWidth: Int): String
    Implicit
    This member is added by an implicit conversion from Patch toscalafix.XtensionScalafixProductInspect performed by method XtensionScalafixProductInspect in scalafix.util.Api.
    Definition Classes
    XtensionScalafixProductInspect
  35. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  36. def toString(): String
    Definition Classes
    AnyRef → Any
  37. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  39. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Shadowed Implicit Value Members

  1. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from Patch toany2stringadd[Patch] performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (patch: any2stringadd[Patch]).+(other)
    Definition Classes
    any2stringadd

Deprecated Value Members

  1. def structure(printWidth: Int): String
    Implicit
    This member is added by an implicit conversion from Patch toscalafix.XtensionScalafixProductInspect performed by method XtensionScalafixProductInspect in scalafix.util.Api.
    Definition Classes
    XtensionScalafixProductInspect
    Annotations
    @deprecated
    Deprecated

    (Since version 0.9.7) use structureWidth instead

  2. def [B](y: B): (Patch, B)
    Implicit
    This member is added by an implicit conversion from Patch toArrowAssoc[Patch] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion XtensionScalafixProductInspect fromPatch to scalafix.XtensionScalafixProductInspect

Inherited by implicit conversion any2stringadd fromPatch to any2stringadd[Patch]

Inherited by implicit conversion StringFormat fromPatch to StringFormat[Patch]

Inherited by implicit conversion Ensuring fromPatch to Ensuring[Patch]

Inherited by implicit conversion ArrowAssoc fromPatch to ArrowAssoc[Patch]

Ungrouped