ImportData

ammonite.util.ImportData
See theImportData companion object
case class ImportData(fromName: Name, toName: Name, prefix: Seq[Name], importType: ImportType)

Represents the importing of a single name in the Ammonite REPL, of the form

import $prefix.{$fromName => $toName}

All imports are reduced to this form; import $prefix.$name is results in the fromName and toName being the same, while import $prefix._ or import $prefix.{foo, bar, baz} are split into multiple distinct ImportData objects.

Note that imports can be of one of three distinct ImportTypes: importing a type, a term, or both. This lets us properly deal with shadowing correctly if we import the type and term of the same name from different places

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product