Class/Object

org.scalafmt.internal

State

Related Docs: object State | package internal

Permalink

final case class State(cost: Int, policy: PolicySummary, splits: Vector[Split], indentation: Int, pushes: Vector[Indent[Num]], column: Int) extends Ordered[State] with ScalaFmtLogger with Product with Serializable

A partial formatting solution up to splits.length number of tokens.

Linear Supertypes
Serializable, Serializable, Product, Equals, ScalaFmtLogger, Ordered[State], Comparable[State], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. State
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. ScalaFmtLogger
  7. Ordered
  8. Comparable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new State(cost: Int, policy: PolicySummary, splits: Vector[Split], indentation: Int, pushes: Vector[Indent[Num]], column: Int)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def <(that: State): Boolean

    Permalink
    Definition Classes
    Ordered
  4. def <=(that: State): Boolean

    Permalink
    Definition Classes
    Ordered
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def >(that: State): Boolean

    Permalink
    Definition Classes
    Ordered
  7. def >=(that: State): Boolean

    Permalink
    Definition Classes
    Ordered
  8. def alwaysBetter(other: State): Boolean

    Permalink

    Returns True is this state will always return better formatting than other.

  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def cleanup(token: Token): String

    Permalink
    Definition Classes
    ScalaFmtLogger
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. val column: Int

    Permalink
  13. def compare(that: State): Int

    Permalink
    Definition Classes
    State → Ordered
  14. def compareTo(that: State): Int

    Permalink
    Definition Classes
    Ordered → Comparable
  15. val cost: Int

    Permalink
  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def escape(raw: String): String

    Permalink
    Definition Classes
    ScalaFmtLogger
  18. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. def header[T](t: T): String

    Permalink
    Definition Classes
    ScalaFmtLogger
  21. val indentation: Int

    Permalink
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. def log(t: Tree, tokensOnly: Boolean = false): String

    Permalink
    Definition Classes
    ScalaFmtLogger
  24. def log(token: Token): String

    Permalink
    Definition Classes
    ScalaFmtLogger
  25. def log(tokens: Tokens): String

    Permalink
    Definition Classes
    ScalaFmtLogger
  26. def log(tokens: Token*): String

    Permalink
    Definition Classes
    ScalaFmtLogger
  27. def log(formatToken: FormatToken): String

    Permalink
    Definition Classes
    ScalaFmtLogger
  28. def log(split: Split): String

    Permalink
    Definition Classes
    ScalaFmtLogger
  29. val logger: PrintlnLogger.type

    Permalink
    Definition Classes
    ScalaFmtLogger
  30. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  31. def next(style: ScalaStyle, split: Split, tok: FormatToken): State

    Permalink

    Calculates next State given split at tok.

    Calculates next State given split at tok.

    - Accumulates cost and strategies - Calculates column-width overflow penalty

  32. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  33. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  34. val policy: PolicySummary

    Permalink
  35. val pushes: Vector[Indent[Num]]

    Permalink
  36. def reveal(s: String): String

    Permalink
    Definition Classes
    ScalaFmtLogger
  37. val splits: Vector[Split]

    Permalink
  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  39. def toString(): String

    Permalink
    Definition Classes
    State → AnyRef → Any
  40. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ScalaFmtLogger

Inherited from Ordered[State]

Inherited from Comparable[State]

Inherited from AnyRef

Inherited from Any

Ungrouped