ImportModule
scala.quoted.Quotes.reflectModule.ImportModule
trait ImportModule
Methods of the module object val Import.
Attributes
- Source
- Quotes.scala
- Graph
-
- Supertypes
- Self type
-
Members list
Value members
Abstract methods
def apply(expr: Quotes.this.reflectModule.this.Term, selectors: List[Quotes.this.reflectModule.this.Selector]): Quotes.this.reflectModule.this.Import
Creates an Import with the given qualifier and selectors.
Creates an Import with the given qualifier and selectors.
Value parameters
- expr
-
the qualifier term being imported from
- selectors
-
the list of import selectors
Attributes
- Returns
-
a new
Importtree - Source
- Quotes.scala
def copy(original: Quotes.this.reflectModule.this.Tree)(expr: Quotes.this.reflectModule.this.Term, selectors: List[Quotes.this.reflectModule.this.Selector]): Quotes.this.reflectModule.this.Import
Copies an Import with the given qualifier and selectors.
Copies an Import with the given qualifier and selectors.
Value parameters
- expr
-
the qualifier term being imported from
- original
-
the original tree being copied
- selectors
-
the list of import selectors
Attributes
- Returns
-
a copy of
originalwith the givenexprandselectors - Source
- Quotes.scala
def unapply(tree: Quotes.this.reflectModule.this.Import): (Quotes.this.reflectModule.this.Term, List[Quotes.this.reflectModule.this.Selector])
Matches an Import and extracts the qualifier and selectors.
Matches an Import and extracts the qualifier and selectors.
Value parameters
- tree
-
the import tree to match against
Attributes
- Returns
-
a tuple of the qualifier term and the list of selectors
- Source
- Quotes.scala
In this article