case class Split(modification: Modification, cost: Int, ignoreIf: Boolean = false, indents: Vector[Indent[Length]] = Vector.empty[Indent[Length]], policy: Policy = NoPolicy, penalty: Boolean = false, optimalAt: Option[OptimalToken] = None)(implicit line: Line) extends Product with Serializable
A Split is the whitespace between two non-whitespace tokens.
Consider a split to be an edge in a search graph and FormatToken are the nodes.
- modification
Is this a space, no space, newline or 2 newlines?
- cost
How good is this output? Lower is better.
- indents
Does this add indentation?
- policy
How does this split affect other later splits?
- penalty
Does this split overflow the column limit?
- line
For debugging, to retrace from which case in Router this split originates.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Split
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new Split(modification: Modification, cost: Int, ignoreIf: Boolean = false, indents: Vector[Indent[Length]] = Vector.empty[Indent[Length]], policy: Policy = NoPolicy, penalty: Boolean = false, optimalAt: Option[OptimalToken] = None)(implicit line: Line)
- modification
Is this a space, no space, newline or 2 newlines?
- cost
How good is this output? Lower is better.
- indents
Does this add indentation?
- policy
How does this split affect other later splits?
- penalty
Does this split overflow the column limit?
- line
For debugging, to retrace from which case in Router this split originates.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def adapt(formatToken: FormatToken): Split
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val cost: Int
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- val ignoreIf: Boolean
- val indentation: String
- val indents: Vector[Indent[Length]]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def length: Int
- implicit val line: Line
- val modification: Modification
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val optimalAt: Option[OptimalToken]
- val penalty: Boolean
- val policy: Policy
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def sameSplit(other: Split): Boolean
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Split → AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withIndent(length: Length, expire: Token, expiresOn: ExpiresOn): Split
- def withOptimalToken(token: Token, killOnFail: Boolean = false): Split
- def withOptimalToken(token: Option[Token]): Split
- def withPenalty(penalty: Int): Split
- def withPolicy(newPolicy: Policy): Split