|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthalo.userinterface.cmdline.CommandLine
public class CommandLine
Class which forwards information from command line input to further classes which serve as interface between command line and tools for calculation
Constructor Summary | |
---|---|
CommandLine()
|
Method Summary | |
---|---|
static java.lang.String |
formatList(java.lang.String[] list)
Allows to print a String[] into a human readable format |
static void |
main(java.lang.String[] args)
Main method which is called upon starting the command line input |
static void |
printHelp()
Print a detailed description of all available flags for cmdline interface onto the console |
static void |
run(java.lang.String[] args)
Run the program with the parameters given |
static java.lang.String[] |
shift(java.lang.String[] input)
Shifts the content of a given String array one position to the left, thereby erasing the first element |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommandLine()
Method Detail |
---|
public static java.lang.String formatList(java.lang.String[] list)
list
- Any list in form of an array
public static java.lang.String[] shift(java.lang.String[] input)
input
- The parameter list
public static void printHelp()
public static void run(java.lang.String[] args)
args
- List of parameterspublic static void main(java.lang.String[] args)
args
- Parameter list
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |