Class scala.reflect.api.Trees.ImportExtractor
abstract class ImportExtractor extends AnyRef
Instance Constructors
new ImportExtractor()
Concrete Value Members
final def !=(arg0: Any): Boolean
final def ##(): Int
def +(other: String): String
def ->[B](y: B): (, B)
final def ==(arg0: Any): Boolean
final def asInstanceOf[T0]: T0
def clone(): AnyRef
def ensuring(cond: () => Boolean, msg: => Any):
def ensuring(cond: () => Boolean):
def ensuring(cond: Boolean, msg: => Any):
def ensuring(cond: Boolean):
final def eq(arg0: AnyRef): Boolean
def equals(arg0: AnyRef): Boolean
def finalize(): Unit
final def getClass(): Class[_ <: AnyRef]
def hashCode(): Int
final def isInstanceOf[T0]: Boolean
final def ne(arg0: AnyRef): Boolean
final def notify(): Unit
final def notifyAll(): Unit
final def synchronized[T0](arg0: => T0): T0
def toString(): String
final def wait(): Unit
final def wait(arg0: Long, arg1: Int): Unit
final def wait(arg0: Long): Unit
An extractor class to create and pattern match with syntax
Import(expr, selectors)
. This AST node corresponds to the following Scala code:import expr.{selectors}
Selectors are a list of ImportSelectors, which conceptually are pairs of names (from, to). The last (and maybe only name) may be a nme.WILDCARD. For instance:
import qual.{w => _, x, y => z, _}
Would be represented as:
Import(qual, List(("w", WILDCARD), ("x", "x"), ("y", "z"), (WILDCARD, null)))
The symbol of an
Import
is an import symbol @see Symbol.newImport. It's used primarily as a marker to check that the import has been typechecked.