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
- Alphabetic
- By Inheritance
- Patch
- Product
- Equals
- AnyRef
- Any
- by XtensionScalafixProductInspect
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: Option[Patch]): Patch
Merge this patch together with the other patch if non-empty.
- def +(other: Patch): Patch
Merge this patch together with the other patch.
- def ++(other: Iterable[Patch]): Patch
Merge this patch together with the other patches.
- def ->[B](y: B): (Patch, B)
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def atomic: Patch
Skip this entire patch if a part of it is disabled with // scalafix:off
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def ensuring(cond: (Patch) => Boolean, msg: => Any): Patch
- def ensuring(cond: (Patch) => Boolean): Patch
- def ensuring(cond: Boolean, msg: => Any): Patch
- def ensuring(cond: Boolean): Patch
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- 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.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nonEmpty: Boolean
- See also
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementName(n: Int): String
- Definition Classes
- Product
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def productIterator: Iterator[Any]
- Definition Classes
- Product
- def productPrefix: String
- Definition Classes
- Product
- 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
- 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
- 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
- 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
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Shadowed Implicit Value Members
- 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
- 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
- @deprecated @inline()
- Deprecated
(Since version 2.12.16) Use
formatString.format(value)
instead ofvalue.formatted(formatString)
, or use thef""
string interpolator. In Java 15 and later,formatted
resolves to the new method in String which has reversed parameters.
- 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
- 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.