TermPath

zio.blocks.typeid.TermPath
See theTermPath companion object
final case class TermPath(segments: List[Segment])

Represents a path to a term value, used for singleton types.

For example, for a singleton type MyObject.Inner.value.type:

TermPath(List(
 TermPath.Package("com"),
 TermPath.Package("example"),
 TermPath.Term("MyObject"),
 TermPath.Term("Inner"),
 TermPath.Term("value")
))

Attributes

Companion
object
Source
TermPath.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def /(name: String): TermPath

Appends a term segment to this path.

Appends a term segment to this path.

Attributes

Source
TermPath.scala
def asString: String

Returns the path as a dot-separated string.

Returns the path as a dot-separated string.

Attributes

Source
TermPath.scala
def isEmpty: Boolean

Returns true if this is an empty path.

Returns true if this is an empty path.

Attributes

Source
TermPath.scala

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