Top Fields Constructors Methods
kotlin.reflect.jvm.internal.impl.utils

public Class Printer

extends Object
Class Inheritance
Imports
org.jetbrains.annotations.NotNull, java.io.IOException, java.util.Collection, .Iterator

Field Summary

Modifier and TypeField and Description
private int
private static final String
private String
private final String
private int
public static final String
private final int
private final Appendable
private boolean

Constructor Summary

AccessConstructor and Description
public
public
public
Printer(@NotNull Appendable out, int maxBlankLines)

public
Printer(@NotNull Appendable out, int maxBlankLines, @NotNull String indentUnit)

private
Printer(@NotNull Appendable out, int maxBlankLines, @NotNull String indentUnit, @NotNull String indent)

public

Method Summary

Modifier and TypeMethod and Description
private void
public int
public int
public boolean
public @NotNull Printer
public void
private void
public @NotNull Printer
println(Object... objects)

public @NotNull Printer
public @NotNull Printer
public @NotNull Printer
public @NotNull Printer
separated(Object separator, Object... items)

public @NotNull Printer
separated(Object separator, Collection<?> items)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public @NotNull Printer
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

blankLineCountIncludingCurrentback to summary
private int blankLineCountIncludingCurrent
DEFAULT_INDENTATION_UNITback to summary
private static final String DEFAULT_INDENTATION_UNIT
indentback to summary
private String indent
indentUnitback to summary
private final String indentUnit
lengthback to summary
private int length
LINE_SEPARATORback to summary
public static final String LINE_SEPARATOR
maxBlankLinesback to summary
private final int maxBlankLines
outback to summary
private final Appendable out
withholdIndentOnceback to summary
private boolean withholdIndentOnce

Constructor Detail

Printerback to summary
public Printer(@NotNull Appendable out)
Printerback to summary
public Printer(@NotNull Appendable out, @NotNull String indentUnit)
Printerback to summary
public Printer(@NotNull Appendable out, int maxBlankLines)
Printerback to summary
public Printer(@NotNull Appendable out, int maxBlankLines, @NotNull String indentUnit)
Printerback to summary
private Printer(@NotNull Appendable out, int maxBlankLines, @NotNull String indentUnit, @NotNull String indent)
Printerback to summary
public Printer(@NotNull Appendable out, @NotNull Printer parent)

Method Detail

appendback to summary
private void append(Object o)
getCurrentIndentLengthInUnitsback to summary
public int getCurrentIndentLengthInUnits()
getIndentUnitLengthback to summary
public int getIndentUnitLength()
isEmptyback to summary
public boolean isEmpty()
popIndentback to summary
public @NotNull Printer popIndent()
Annotations
@NotNull
printIndentback to summary
public void printIndent()
printLineSeparatorback to summary
private void printLineSeparator()
printlnback to summary
public @NotNull Printer println(Object... objects)
Annotations
@NotNull
printlnWithNoIndentback to summary
public @NotNull Printer printlnWithNoIndent(Object... objects)
Annotations
@NotNull
printWithNoIndentback to summary
public @NotNull Printer printWithNoIndent(Object... objects)
Annotations
@NotNull
pushIndentback to summary
public @NotNull Printer pushIndent()
Annotations
@NotNull
separatedback to summary
public @NotNull Printer separated(Object separator, Object... items)
Annotations
@NotNull
separatedback to summary
public @NotNull Printer separated(Object separator, Collection<?> items)
Annotations
@NotNull
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
withholdIndentOnceback to summary
public @NotNull Printer withholdIndentOnce()
Annotations
@NotNull