Package org.jline.console
Interface Printer
- All Known Implementing Classes:
DefaultPrinter
public interface Printer
Print object to the console.
- Author:
- Matti Rinta-Nikkola
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Value: Boolean
Applies: TABLE
Ignore columnsOut configuration.static final String
Value: String
Applies: TABLE
Table cell vertical border character.static final String
Value:List<String>
Applies: MAP and TABLE
Display given keys/columns on map/table.static final String
Value:List<String>
Applies: TABLE
These map values will be added to the table before all the other keys.static final String
Value:List<String>
Applies: TABLE
These map values will not be inserted to the table.static final String
Value:List<String>
Applies: TABLE
Exclude given columns on table.static final String
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 final String
Value:List<String>
Applies: TABLE
Include given columns on table.static final String
Value: Integer
Applies: MAP
Indention size.static final String
Value: Double
Applies: MAP and TABLE
default value 0.8 i.e.static final String
Value: Integer
Applies: MAP and TABLE
Maximum column width.static final String
Value: Integer
Applies: MAP
Maximum depth objects are resolved.static final String
Value: Integer
Applies: MAP and TABLE
Maximum number of lines to display.static final String
Value: Boolean
Applies: TABLE
List the collection of simple values in multiple columns DEFAULT: list values in one columnstatic final String
Value:Map<class, function>
Applies: MAP and TABLE
Overrides the ScriptEngine toMap() method.static final String
Value:Map<class, function>
Applies: MAP and TABLE
Overrides the ScriptEngine toString() method.static final String
Value: Boolean
Applies: TABLE
Display one row data on table.static final String
Value: TableRows
Applies: TABLE
Highlight table rows.static final String
Value: Boolean
Applies: TABLE
Display table row numbers.static final String
Value: Boolean
Applies: TABLE
Truncate table column names: property.field to field.static final String
Value: Boolean
Applies: MAP and TABLE
Ignore all options defined in PRNT_OPTIONS.static final String
Value: Boolean
Applies: TABLE
Display object structures and lists on table.static final String
Value: String
Use nanorc STYLEstatic final 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 printingstatic final String
Value: String
Applies: MAP and TABLE
Nanorc syntax style used to highlight values.static final String
Value: Boolean
Applies: MAP and TABLE
Highlight everything also strings with spaces DEFAULT: highlight only strings without spaces or enclosed by quotes or bracketsstatic final String
Value: Integer
Applies: MAP and TABLE
Display width (default terminal width). -
Method Summary
-
Field Details
-
ALL
Value: Boolean
Applies: TABLE
Ignore columnsOut configuration.- See Also:
-
COLUMNS
Value:List<String>
Applies: MAP and TABLE
Display given keys/columns on map/table.- See Also:
-
EXCLUDE
Value:List<String>
Applies: TABLE
Exclude given columns on table.- See Also:
-
INCLUDE
Value:List<String>
Applies: TABLE
Include given columns on table.- See Also:
-
INDENTION
Value: Integer
Applies: MAP
Indention size.- See Also:
-
MAX_COLUMN_WIDTH
Value: Integer
Applies: MAP and TABLE
Maximum column width.- See Also:
-
MAX_DEPTH
Value: Integer
Applies: MAP
Maximum depth objects are resolved.- See Also:
-
MAXROWS
Value: Integer
Applies: MAP and TABLE
Maximum number of lines to display.- See Also:
-
ONE_ROW_TABLE
Value: Boolean
Applies: TABLE
Display one row data on table.- See Also:
-
ROWNUM
Value: Boolean
Applies: TABLE
Display table row numbers.- See Also:
-
SHORT_NAMES
Value: Boolean
Applies: TABLE
Truncate table column names: property.field to field.- See Also:
-
SKIP_DEFAULT_OPTIONS
Value: Boolean
Applies: MAP and TABLE
Ignore all options defined in PRNT_OPTIONS.- See Also:
-
STRUCT_ON_TABLE
Value: Boolean
Applies: TABLE
Display object structures and lists on table.- See Also:
-
STYLE
Value: String
Use nanorc STYLE- See Also:
-
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- See Also:
-
VALUE_STYLE
Value: String
Applies: MAP and TABLE
Nanorc syntax style used to highlight values.- See Also:
-
WIDTH
Value: Integer
Applies: MAP and TABLE
Display width (default terminal width).- See Also:
-
BORDER
Value: String
Applies: TABLE
Table cell vertical border character.- See Also:
-
ROW_HIGHLIGHT
Value: TableRows
Applies: TABLE
Highlight table rows.- See Also:
-
COLUMNS_IN
Value:List<String>
Applies: TABLE
These map values will be added to the table before all the other keys.- See Also:
-
COLUMNS_OUT
Value:List<String>
Applies: TABLE
These map values will not be inserted to the table.- See Also:
-
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. The regex = * is processed after all the other regexes and the highlight function will be applied to all map values that have not been already highlighted.- See Also:
-
MAP_SIMILARITY
Value: Double
Applies: MAP and TABLE
default value 0.8 i.e. if at least of 4 of the 5 results map keys match with reference key set the result will be printed out as a table.- See Also:
-
OBJECT_TO_MAP
Value:Map<class, function>
Applies: MAP and TABLE
Overrides the ScriptEngine toMap() method.- See Also:
-
OBJECT_TO_STRING
Value:Map<class, function>
Applies: MAP and TABLE
Overrides the ScriptEngine toString() method.- See Also:
-
VALUE_STYLE_ALL
Value: Boolean
Applies: MAP and TABLE
Highlight everything also strings with spaces DEFAULT: highlight only strings without spaces or enclosed by quotes or brackets- See Also:
-
MULTI_COLUMNS
Value: Boolean
Applies: TABLE
List the collection of simple values in multiple columns DEFAULT: list values in one column- See Also:
-
BOOLEAN_KEYS
-
-
Method Details
-
println
-
println
-
prntCommand
-
refresh
boolean refresh()Clear printer syntax highlighter cache
-