public class OConsoleApplication extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
OConsoleApplication.RESULT |
Modifier and Type | Field and Description |
---|---|
protected String[] |
args |
protected StringBuilder |
commandBuffer |
protected static String[] |
COMMENT_PREFIXS |
protected PrintStream |
err |
protected String[] |
exitCommands |
protected String[] |
helpCommands |
protected InputStream |
in |
protected boolean |
interactiveMode |
protected TreeMap<Method,Object> |
methods |
static String |
ONLINE_HELP_EXT |
static String |
ONLINE_HELP_URL |
protected PrintStream |
out |
static String |
PARAM_DISABLE_HISTORY |
protected Map<String,String> |
properties |
protected OConsoleReader |
reader |
protected String |
wordSeparator |
Constructor and Description |
---|
OConsoleApplication(String[] iArgs) |
Modifier and Type | Method and Description |
---|---|
protected Map<String,Object> |
addCommand(Map<String,Object> commandsTree,
String commandLine) |
void |
error(String iMessage,
Object... iArgs) |
protected OConsoleApplication.RESULT |
execute(String iCommand) |
protected boolean |
executeBatch(String commandLine) |
protected boolean |
executeCommands(OCommandStream commandStream,
boolean iBatchMode) |
protected String |
formatCommandSpecs(String iCommand,
Method m) |
static String |
getClearName(String iJavaName) |
protected String |
getCommandLine(String[] iArguments) |
protected Map<Method,Object> |
getConsoleMethods()
Returns a map of all console method and the object they can be called on.
|
protected int |
getConsoleWidth() |
protected String |
getContext() |
static String |
getCorrectMethodName(Method m) |
protected Method |
getMethod(String iCommand) |
protected String |
getOnlineHelp(String urlToRead) |
protected String |
getPrompt() |
int |
getVerboseLevel() |
void |
help(String iCommand) |
protected boolean |
isCollectingCommands(String iLine) |
protected boolean |
isComment(String commandLine) |
boolean |
isEchoEnabled() |
protected static boolean |
isInteractiveMode(String[] args) |
protected boolean |
isPropertyEnabled(String iPropertyName) |
void |
message(String iMessage,
Object... iArgs) |
protected void |
onAfter() |
protected void |
onBefore() |
protected void |
onException(Throwable throwable) |
int |
run() |
void |
setOutput(PrintStream iOut) |
void |
setReader(OConsoleReader iReader) |
protected void |
syntaxError(String iCommand,
Method m) |
public static final String PARAM_DISABLE_HISTORY
public static final String ONLINE_HELP_URL
public static final String ONLINE_HELP_EXT
protected static final String[] COMMENT_PREFIXS
protected final StringBuilder commandBuffer
protected InputStream in
protected PrintStream out
protected PrintStream err
protected String wordSeparator
protected String[] helpCommands
protected String[] exitCommands
protected OConsoleReader reader
protected boolean interactiveMode
protected String[] args
public OConsoleApplication(String[] iArgs)
public void setReader(OConsoleReader iReader)
public int run()
public int getVerboseLevel()
protected int getConsoleWidth()
public boolean isEchoEnabled()
protected boolean isPropertyEnabled(String iPropertyName)
protected String getPrompt()
protected String getContext()
protected static boolean isInteractiveMode(String[] args)
protected boolean executeBatch(String commandLine)
protected boolean executeCommands(OCommandStream commandStream, boolean iBatchMode)
protected boolean isComment(String commandLine)
protected boolean isCollectingCommands(String iLine)
protected OConsoleApplication.RESULT execute(String iCommand)
protected Map<Method,Object> getConsoleMethods()
protected Map<String,Object> addCommand(Map<String,Object> commandsTree, String commandLine)
public void help(String iCommand)
protected void onBefore()
protected void onAfter()
protected void onException(Throwable throwable)
public void setOutput(PrintStream iOut)
Copyright © 2009–2020 OrientDB. All rights reserved.