Class DefaultPrinter

java.lang.Object
All Implemented Interfaces:
CommandRegistry, Printer

public class DefaultPrinter extends JlineCommandRegistry implements Printer
Default implementation of the Printer interface that provides syntax highlighting and formatting.

DefaultPrinter provides functionality for printing various types of objects to the console with syntax highlighting and formatting. It supports printing:

  • Simple objects (strings, numbers, etc.)
  • Collections and maps
  • Tables with row highlighting
  • JSON and other structured data
  • Source code with syntax highlighting

The printer can be configured with various options to control the formatting and highlighting of the output, such as maximum number of rows, indentation, and highlighting styles.