public interface Printer
| Modifier and Type | Field and Description |
|---|---|
static String |
ALL
Value: Boolean
Applies: TABLE Ignore columnsOut configuration. |
static List<String> |
BOOLEAN_KEYS |
static String |
COLUMNS
Value:
List<String>Applies: TABLE Display given columns on table. |
static String |
COLUMNS_IN
Value:
List<String>Applies: TABLE These map values will be added to the table before all the other keys. |
static String |
COLUMNS_OUT
Value:
List<String>Applies: TABLE These map values will not be inserted to the table. |
static String |
EXCLUDE
Value:
List<String>Applies: TABLE Exclude given columns on table. |
static String |
HIGHLIGHT_VALUE
Value:
Map<regex, function>.Applies: TABLE If command result map key matches with regex the highlight function is applied to the corresponding map value. |
static String |
INCLUDE
Value:
List<String>Applies: TABLE Include given columns on table. |
static String |
INDENTION
Value: Integer
Applies: MAP Indention size. |
static String |
MAP_SIMILARITY
Value: Double
Applies: MAP and TABLE default value 0.8 i.e. |
static String |
MAX_COLUMN_WIDTH
Value: Integer
Applies: MAP and TABLE Maximum column width. |
static String |
MAX_DEPTH
Value: Integer
Applies: MAP Maximum depth objects are resolved. |
static String |
MAXROWS
Value: Integer
Applies: MAP and TABLE Maximum number of lines to display. |
static String |
OBJECT_TO_MAP
Value:
Map<class, function>Applies: MAP and TABLE Overrides the ScriptEngine toMap() method. |
static String |
OBJECT_TO_STRING
Value:
Map<class, function>Applies: MAP and TABLE Overrides the ScriptEngine toString() method. |
static String |
ONE_ROW_TABLE
Value: Boolean
Applies: TABLE Display one row data on table. |
static String |
ROWNUM
Value: Boolean
Applies: TABLE Display table row numbers. |
static String |
SHORT_NAMES
Value: Boolean
Applies: TABLE Truncate table column names: property.field to field. |
static String |
SKIP_DEFAULT_OPTIONS
Value: Boolean
Applies: MAP and TABLE Ignore all options defined in PRNT_OPTIONS. |
static String |
STRUCT_ON_TABLE
Value: Boolean
Applies: TABLE Display object structures and lists on table. |
static String |
STYLE
Value: String
Use nanorc STYLE |
static String |
TO_STRING
Value: Boolean
Applies: MAP and TABLE Use object's toString() method to get print value DEFAULT: object's fields are put to property map before printing |
static String |
VALUE_STYLE
Value: String
Applies: MAP and TABLE Nanorc syntax style used to highlight values. |
static String |
WIDTH
Value: Integer
Applies: MAP and TABLE Display width (default terminal width). |
| Modifier and Type | Method and Description |
|---|---|
void |
println(Map<String,Object> options,
Object object) |
default void |
println(Object object) |
default Exception |
prntCommand(CommandInput input) |
static final String ALL
static final String COLUMNS
List<String>static final String EXCLUDE
List<String>static final String INCLUDE
List<String>static final String INDENTION
static final String MAX_COLUMN_WIDTH
static final String MAX_DEPTH
static final String MAXROWS
static final String ONE_ROW_TABLE
static final String ROWNUM
static final String SHORT_NAMES
static final String SKIP_DEFAULT_OPTIONS
static final String STRUCT_ON_TABLE
static final String STYLE
static final String TO_STRING
static final String VALUE_STYLE
static final String WIDTH
static final String COLUMNS_IN
List<String>static final String COLUMNS_OUT
List<String>static final String HIGHLIGHT_VALUE
Map<regex, function>.static final String MAP_SIMILARITY
static final String OBJECT_TO_MAP
Map<class, function>static final String OBJECT_TO_STRING
Map<class, function>Copyright © 2020. All rights reserved.