|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuserinterface.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 boolean |
isValid(java.lang.String method)
Checks if the chosen method is a valid one |
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 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
-
public static boolean isValid(java.lang.String method)
method
-
public static java.lang.String[] shift(java.lang.String[] input)
input
-
public static void printHelp()
public static void main(java.lang.String[] args)
args
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |