trait Replace[A, B] extends AnyRef
The purpose of this typeclass is to replace one list of things with another of that type.
eg. replacing the statements of a Defn.Class with a new set of statements
- A
the object you are replacing the items in
- B
the type of items you are replacing
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Replace
- AnyRef
- Any
Implicitly
- by XtensionExtractors
- by ExtensionReplacers
- by XtensionTokenizeInputLike
- by XtensionStructure
- by XtensionSyntax
- by XtensionShow
- by XtensionParseInputLike
- by XtensionClassifiable
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- def ->[B](y: B): (Replace[A, B], B)
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def ensuring(cond: (Replace[A, B]) => Boolean, msg: => Any): Replace[A, B]
- def ensuring(cond: (Replace[A, B]) => Boolean): Replace[A, B]
- def ensuring(cond: Boolean, msg: => Any): Replace[A, B]
- def ensuring(cond: Boolean): Replace[A, B]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def extract[B](implicit ev: Extract[Replace[A, B], B]): List[B]
- Implicit
- This member is added by an implicit conversion from Replace[A, B] tocontrib.XtensionExtractors[Replace[A, B]] performed by method XtensionExtractors in scala.meta.contrib.implicits.ExtractExtensions.
- Definition Classes
- XtensionExtractors
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def formatted(fmtstr: String): String
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hasMod(mod: Mod)(implicit ev: Extract[Replace[A, B], Mod]): Boolean
- Implicit
- This member is added by an implicit conversion from Replace[A, B] tocontrib.XtensionExtractors[Replace[A, B]] performed by method XtensionExtractors in scala.meta.contrib.implicits.ExtractExtensions.
- Definition Classes
- XtensionExtractors
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def is[U](implicit classifier: Classifier[Replace[A, B], U]): Boolean
- Implicit
- This member is added by an implicit conversion from Replace[A, B] tometa.XtensionClassifiable[Replace[A, B]] performed by method XtensionClassifiable in scala.meta.classifiers.Api.This conversion will take place only if an implicit value of type Classifiable[Replace[A, B]] is in scope.
- Definition Classes
- XtensionClassifiable
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isNot[U](implicit classifier: Classifier[Replace[A, B], U]): Boolean
- Implicit
- This member is added by an implicit conversion from Replace[A, B] tometa.XtensionClassifiable[Replace[A, B]] performed by method XtensionClassifiable in scala.meta.classifiers.Api.This conversion will take place only if an implicit value of type Classifiable[Replace[A, B]] is in scope.
- Definition Classes
- XtensionClassifiable
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def parse[U](implicit convert: Convert[Replace[A, B], inputs.Input], parse: Parse[U], dialect: Dialect): parsers.Parsed[U]
- Implicit
- This member is added by an implicit conversion from Replace[A, B] tometa.XtensionParseInputLike[Replace[A, B]] performed by method XtensionParseInputLike in scala.meta.parsers.Api.
- Definition Classes
- XtensionParseInputLike
- def show[Style[X] <: Show[X]](implicit style: Style[Replace[A, B]]): String
- Implicit
- This member is added by an implicit conversion from Replace[A, B] tometa.XtensionShow[Replace[A, B]] performed by method XtensionShow in scala.meta.prettyprinters.Api.
- Definition Classes
- XtensionShow
- def structure: String
- Implicit
- This member is added by an implicit conversion from Replace[A, B] tometa.XtensionStructure[Replace[A, B]] performed by method XtensionStructure in scala.meta.prettyprinters.Api.This conversion will take place only if an implicit value of type prettyprinters.Structure[Replace[A, B]] is in scope.
- Definition Classes
- XtensionStructure
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def syntax: String
- Implicit
- This member is added by an implicit conversion from Replace[A, B] tometa.XtensionSyntax[Replace[A, B]] performed by method XtensionSyntax in scala.meta.prettyprinters.Api.This conversion will take place only if an implicit value of type prettyprinters.Syntax[Replace[A, B]] is in scope.
- Definition Classes
- XtensionSyntax
- def toString(): String
- Definition Classes
- AnyRef → Any
- def tokenize(implicit convert: Convert[Replace[A, B], inputs.Input], tokenize: Tokenize, dialect: Dialect): tokenizers.Tokenized
- Implicit
- This member is added by an implicit conversion from Replace[A, B] tometa.XtensionTokenizeInputLike[Replace[A, B]] performed by method XtensionTokenizeInputLike in scala.meta.tokenizers.Api.
- Definition Classes
- XtensionTokenizeInputLike
- 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()
- def withMods(bs: List[Mod])(implicit ev: Replace[Replace[A, B], Mod]): Replace[A, B]
- Implicit
- This member is added by an implicit conversion from Replace[A, B] tocontrib.ExtensionReplacers[Replace[A, B]] performed by method ExtensionReplacers in scala.meta.contrib.implicits.ReplaceExtensions.
- Definition Classes
- ExtensionReplacers
- def withStats(bs: List[Stat])(implicit ev: Replace[Replace[A, B], Stat]): Replace[A, B]
- Implicit
- This member is added by an implicit conversion from Replace[A, B] tocontrib.ExtensionReplacers[Replace[A, B]] performed by method ExtensionReplacers in scala.meta.contrib.implicits.ReplaceExtensions.
- Definition Classes
- ExtensionReplacers
Deprecated Value Members
- def →[B](y: B): (Replace[A, B], B)
- Implicit
- This member is added by an implicit conversion from Replace[A, B] toArrowAssoc[Replace[A, B]] 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.