Segments

mill.api.daemon.Segments
See theSegments companion object
final case class Segments

Models a path with the Mill build hierarchy, e.g. amm.util[2.11].test.compile.

  • .-separated segments are Segment.Labels,
  • []-delimited segments are Segment.Crosss
  • If the first segment starts with ./, it refers to a single-file script
  • If the first segment ends with /, it refers to an external module

Attributes

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

Members list

Value members

Concrete methods

def ++(other: Segment): Segments

Attributes

Source
Segments.scala
def ++(other: Seq[Segment]): Segments

Attributes

Source
Segments.scala
def ++(other: Segments): Segments

Attributes

Source
Segments.scala
def head: Segment

Attributes

Source
Segments.scala
def init: Segments

Attributes

Source
Segments.scala
def last: Label

Attributes

Source
Segments.scala
def parts: List[String]

Attributes

Source
Segments.scala
def render: String

Attributes

Source
Segments.scala
def renderBracketSyntax: String

Renders segments using bracket syntax for cross modules (e.g., foo[2.12.20]). Used for tab completion when the user has started typing with bracket syntax.

Renders segments using bracket syntax for cross modules (e.g., foo[2.12.20]). Used for tab completion when the user has started typing with bracket syntax.

Attributes

Source
Segments.scala
def startsWith(prefix: Segments): Boolean

Attributes

Source
Segments.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

Concrete fields

lazy override val hashCode: Int

Calculates a hash code value for the object.

Calculates a hash code value for the object.

The default hashing algorithm is platform dependent.

Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

Attributes

Returns

the hash code value for this object.

Source
Segments.scala