Annotation scala.reflect.api.Trees.ImportSelector

abstract type ImportSelector >: Null <: Universe.ImportSelectorApi

Import selector (not a tree, but a component of the Import tree)

Representation of an imported name its optional rename and their optional positions

Eliminated by typecheck.

Source
Trees.scala
Linear Supertypes
Universe.ImportSelectorApi, AnyRef, Any

Abstract Value Members

abstract def isMask: Boolean

Does the selector mask or hide a name? import x.{y => _}

Definition Classes
ImportSelectorApi

abstract def isRename: Boolean

Does the selector introduce a specific name by rename? x.{y => z}

Definition Classes
ImportSelectorApi

abstract def isSpecific: Boolean

Does the selector introduce a specific name? import a.b, x.{y => z}

Definition Classes
ImportSelectorApi

abstract def isWildcard: Boolean

Is the selector a wildcard import that introduces all available names? import x._

Definition Classes
ImportSelectorApi

abstract def name: Universe.Name

The imported name.

Definition Classes
ImportSelectorApi

abstract def namePos: Int

Offset of the position of the importing part of the selector in the source file. Is equal to -1 is the position is unknown.

Definition Classes
ImportSelectorApi

abstract def rename: Universe.Name

The name the import is renamed to. Is equal to name if it's not a renaming import.

Definition Classes
ImportSelectorApi

abstract def renamePos: Int

Offset of the position of the renaming part of the selector in the source file. Is equal to -1 is the position is unknown.

Definition Classes
ImportSelectorApi

Concrete Value Members

final def !=(arg0: Any): Boolean

Definition Classes
AnyRef → Any

final def ##(): Int

Definition Classes
AnyRef → Any

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()

final def eq(arg0: AnyRef): Boolean

Definition Classes
AnyRef

def equals(arg0: AnyRef): Boolean

Definition Classes
AnyRef → Any

def finalize(): Unit

Attributes
protected[java.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()

final def isInstanceOf[T0]: Boolean

Definition Classes
Any

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()

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()

© 2002-2019 EPFL, with contributions from Lightbend.
Licensed under the Apache License, Version 2.0.
https://www.scala-lang.org/api/2.13.0/scala-reflect/scala/reflect/api/Trees$ImportSelector.html