Trait/Object

scala.meta.contrib

Extract

Related Docs: object Extract | package contrib

Permalink

trait Extract[A, B] extends AnyRef

The motivation for this typeclass is to extract values out of trees that could have been fields on the classes. However, these values are not included as fields on the tree nodes because of various reasons.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Extract
  2. AnyRef
  3. Any
Implicitly
  1. by XtensionSyntax
  2. by XtensionStructure
  3. by XtensionExtractors
  4. by ExtensionReplacers
  5. by XtensionTokenizeInputLike
  6. by XtensionShow
  7. by XtensionParseInputLike
  8. by XtensionClassifiable
  9. by any2stringadd
  10. by StringFormat
  11. by Ensuring
  12. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def extract(a: A): List[B]

    Permalink

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Extract[A, B] to any2stringadd[Extract[A, B]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Extract[A, B], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Extract[A, B] to ArrowAssoc[Extract[A, B]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def ensuring(cond: (Extract[A, B]) ⇒ Boolean, msg: ⇒ Any): Extract[A, B]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Extract[A, B] to Ensuring[Extract[A, B]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  9. def ensuring(cond: (Extract[A, B]) ⇒ Boolean): Extract[A, B]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Extract[A, B] to Ensuring[Extract[A, B]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: Boolean, msg: ⇒ Any): Extract[A, B]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Extract[A, B] to Ensuring[Extract[A, B]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean): Extract[A, B]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Extract[A, B] to Ensuring[Extract[A, B]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Extract[A, B] to StringFormat[Extract[A, B]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def hasMod(mod: Mod)(implicit ev: Extract[Extract[A, B], Mod]): Boolean

    Permalink
    Implicit information
    This member is added by an implicit conversion from Extract[A, B] to contrib.XtensionExtractors[Extract[A, B]] performed by method XtensionExtractors in scala.meta.contrib.implicits.ExtractExtensions.
    Definition Classes
    XtensionExtractors
  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  19. def is[U](implicit classifier: Classifier[Extract[A, B], U]): Boolean

    Permalink
    Implicit information
    This member is added by an implicit conversion from Extract[A, B] to meta.XtensionClassifiable[Extract[A, B]] performed by method XtensionClassifiable in scala.meta.classifiers.Api. This conversion will take place only if an implicit value of type Classifiable[Extract[A, B]] is in scope.
    Definition Classes
    XtensionClassifiable
  20. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  21. def isNot[U](implicit classifier: Classifier[Extract[A, B], U]): Boolean

    Permalink
    Implicit information
    This member is added by an implicit conversion from Extract[A, B] to meta.XtensionClassifiable[Extract[A, B]] performed by method XtensionClassifiable in scala.meta.classifiers.Api. This conversion will take place only if an implicit value of type Classifiable[Extract[A, B]] is in scope.
    Definition Classes
    XtensionClassifiable
  22. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  25. def parse[U](implicit convert: Convert[Extract[A, B], inputs.Input], parse: Parse[U], dialect: Dialect): parsers.Parsed[U]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Extract[A, B] to meta.XtensionParseInputLike[Extract[A, B]] performed by method XtensionParseInputLike in scala.meta.parsers.Api.
    Definition Classes
    XtensionParseInputLike
  26. def show[Style[X] <: Show[X]](implicit style: Style[Extract[A, B]]): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Extract[A, B] to meta.XtensionShow[Extract[A, B]] performed by method XtensionShow in scala.meta.prettyprinters.Api.
    Definition Classes
    XtensionShow
  27. def structure: String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Extract[A, B] to meta.XtensionStructure[Extract[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[Extract[A, B]] is in scope.
    Definition Classes
    XtensionStructure
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  29. def syntax: String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Extract[A, B] to meta.XtensionSyntax[Extract[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[Extract[A, B]] is in scope.
    Definition Classes
    XtensionSyntax
  30. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  31. def tokenize(implicit convert: Convert[Extract[A, B], inputs.Input], tokenize: Tokenize, dialect: Dialect): tokenizers.Tokenized

    Permalink
    Implicit information
    This member is added by an implicit conversion from Extract[A, B] to meta.XtensionTokenizeInputLike[Extract[A, B]] performed by method XtensionTokenizeInputLike in scala.meta.tokenizers.Api.
    Definition Classes
    XtensionTokenizeInputLike
  32. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. def withMods(bs: List[Mod])(implicit ev: Replace[Extract[A, B], Mod]): Extract[A, B]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Extract[A, B] to contrib.ExtensionReplacers[Extract[A, B]] performed by method ExtensionReplacers in scala.meta.contrib.implicits.ReplaceExtensions.
    Definition Classes
    ExtensionReplacers
  36. def withStats(bs: List[Stat])(implicit ev: Replace[Extract[A, B], Stat]): Extract[A, B]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Extract[A, B] to contrib.ExtensionReplacers[Extract[A, B]] performed by method ExtensionReplacers in scala.meta.contrib.implicits.ReplaceExtensions.
    Definition Classes
    ExtensionReplacers
  37. def [B](y: B): (Extract[A, B], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Extract[A, B] to ArrowAssoc[Extract[A, B]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. def extract[B](implicit ev: Extract[Extract[A, B], B]): List[B]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Extract[A, B] to contrib.XtensionExtractors[Extract[A, B]] performed by method XtensionExtractors in scala.meta.contrib.implicits.ExtractExtensions.
    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:
    (extract: contrib.XtensionExtractors[Extract[A, B]]).extract(ev)
    Definition Classes
    XtensionExtractors

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion XtensionSyntax from Extract[A, B] to meta.XtensionSyntax[Extract[A, B]]

Inherited by implicit conversion XtensionStructure from Extract[A, B] to meta.XtensionStructure[Extract[A, B]]

Inherited by implicit conversion XtensionExtractors from Extract[A, B] to contrib.XtensionExtractors[Extract[A, B]]

Inherited by implicit conversion ExtensionReplacers from Extract[A, B] to contrib.ExtensionReplacers[Extract[A, B]]

Inherited by implicit conversion XtensionTokenizeInputLike from Extract[A, B] to meta.XtensionTokenizeInputLike[Extract[A, B]]

Inherited by implicit conversion XtensionShow from Extract[A, B] to meta.XtensionShow[Extract[A, B]]

Inherited by implicit conversion XtensionParseInputLike from Extract[A, B] to meta.XtensionParseInputLike[Extract[A, B]]

Inherited by implicit conversion XtensionClassifiable from Extract[A, B] to meta.XtensionClassifiable[Extract[A, B]]

Inherited by implicit conversion any2stringadd from Extract[A, B] to any2stringadd[Extract[A, B]]

Inherited by implicit conversion StringFormat from Extract[A, B] to StringFormat[Extract[A, B]]

Inherited by implicit conversion Ensuring from Extract[A, B] to Ensuring[Extract[A, B]]

Inherited by implicit conversion ArrowAssoc from Extract[A, B] to ArrowAssoc[Extract[A, B]]

Ungrouped