public class DefaultPrinter extends JlineCommandRegistry implements Printer
CommandRegistry.CommandSessionALL, BOOLEAN_KEYS, COLUMNS, COLUMNS_IN, COLUMNS_OUT, EXCLUDE, HIGHLIGHT_VALUE, INCLUDE, INDENTION, MAP_SIMILARITY, MAX_COLUMN_WIDTH, MAX_DEPTH, MAXROWS, OBJECT_TO_MAP, OBJECT_TO_STRING, ONE_ROW_TABLE, ROWNUM, SHORT_NAMES, SKIP_DEFAULT_OPTIONS, STRUCT_ON_TABLE, STYLE, TO_STRING, VALUE_STYLE, WIDTH| Constructor and Description |
|---|
DefaultPrinter(ConfigurationPath configPath) |
DefaultPrinter(ScriptEngine engine,
ConfigurationPath configPath) |
| Modifier and Type | Method and Description |
|---|---|
String[] |
appendUsage(String[] customUsage) |
Map<String,Object> |
compileOptions(Options opt) |
void |
println(Map<String,Object> optionsIn,
Object object) |
void |
println(Object object) |
Exception |
prntCommand(CommandInput input) |
void |
setHighlightValue(Map<String,Function<Object,org.jline.utils.AttributedString>> highlightValue)
Highlight column value
|
void |
setObjectToMap(Map<Class<?>,Function<Object,Map<String,Object>>> objectToMap)
Override ScriptEngine toMap() method
|
void |
setObjectToString(Map<Class<?>,Function<Object,String>> objectToString)
Override ScriptEngine toString() method
|
commandDescription, commandInfo, commandOptions, compileCommandDescription, compileCommandInfo, compileCommandOptions, defaultCompleter, parseOptionsalias, commandAliases, commandNames, compileCompleters, doHelpDesc, getCommandMethods, hasCommand, invoke, registerCommands, registerCommands, registeredCommand, rename, saveExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaggregateCompleters, compileCompleters, namepublic DefaultPrinter(ConfigurationPath configPath)
public DefaultPrinter(ScriptEngine engine, ConfigurationPath configPath)
public Exception prntCommand(CommandInput input)
prntCommand in interface Printerpublic void setObjectToMap(Map<Class<?>,Function<Object,Map<String,Object>>> objectToMap)
objectToMap - key: object class, value: toMap functionpublic void setObjectToString(Map<Class<?>,Function<Object,String>> objectToString)
objectToString - key: object class, value: toString functionCopyright © 2020. All rights reserved.