Indentation

case class Indentation(currentLevel: Int, numSpaces: Int, dotted: Boolean)

Represents the current indentation level of a formatter instance.

Value parameters:
currentLevel

the level of indentation (number of characters)

dotted

indicates whether the indentation happens with a dot pattern or with just whitespace

numSpaces

the number of space characters to add when creating the next level of indentation from this instance

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

Value members

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product

Concrete fields

val newLine: String

A string container the newline character and all characters needed for rendering the current level of indentation.

A string container the newline character and all characters needed for rendering the current level of indentation.

Creates a new instance with the indentation level increased by numCharacters.

Creates a new instance with the indentation level increased by numCharacters.