Class

scala.reflect.api.Trees

AppliedTypeTreeExtractor

Related Doc: package Trees

Permalink

abstract class AppliedTypeTreeExtractor extends AnyRef

An extractor class to create and pattern match with syntax AppliedTypeTree(tpt, args). This AST node corresponds to the following Scala code:

tpt[args]

Should only be used with tpt nodes which are types, i.e. which have isType returning true. Otherwise TypeApply should be used instead.

List[Int] as in val x: List[Int] = ??? // represented as AppliedTypeTree(Ident(<List>), List(TypeTree(<Int>)))

def foo[T] = ??? foo[Int] // represented as TypeApply(Ident(<foo>), List(TypeTree(<Int>)))

Source
Trees.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AppliedTypeTreeExtractor
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AppliedTypeTreeExtractor()

    Permalink

Abstract Value Members

  1. abstract def apply(tpt: Universe.Tree, args: List[Universe.Tree]): Universe.AppliedTypeTree

    Permalink
  2. abstract def unapply(appliedTypeTree: Universe.AppliedTypeTree): Option[(Universe.Tree, List[Universe.Tree])]

    Permalink