SingleImport

zio.blocks.codegen.ir.Import.SingleImport
final case class SingleImport(path: String, name: String) extends Import

A single-name import.

Value parameters

name

The imported name (e.g., "Foo")

path

The package path (e.g., "com.example")

Attributes

Example
val imp = SingleImport("com.example", "Foo")
// Represents: import com.example.Foo
Source
Import.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Import
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala