public class CommandLineParser extends AbstractInputParser implements IParserInput
| Modifier and Type | Field and Description |
|---|---|
protected String |
commandLine |
CLOSE_GROUP, OPEN_GROUP, QUOTER| Modifier and Type | Method and Description |
|---|---|
static IParserInput |
getInstance(char commandPrefix,
boolean allowEmbeddedCommandPrefix,
File args)
getInstance.
|
static IParserInput |
getInstance(char commandPrefix,
boolean allowEmbeddedCommandPrefix,
String... args)
getInstance.
|
static IParserInput |
getInstance(char commandPrefix,
File args)
getInstance.
|
static IParserInput |
getInstance(char commandPrefix,
String... args)
getInstance.
|
Token[] |
parseTokens()
parseTokens.
|
String |
substring(int inclusiveStart,
int exclusiveEnd)
substring.
|
static String |
unparseTokens(List<ICmdLineArg<?>> args)
unparseTokens.
|
static void |
unparseTokens(List<ICmdLineArg<?>> args,
StringBuilder out)
unparseTokens.
|
buildCommandLine, buildTokens, quoteprotected String commandLine
public static IParserInput getInstance(char commandPrefix, boolean allowEmbeddedCommandPrefix, File args) throws IOException
getInstance.
commandPrefix - a char.allowEmbeddedCommandPrefix - a boolean.args - a File object.IParserInput object.IOException - if any.public static IParserInput getInstance(char commandPrefix, boolean allowEmbeddedCommandPrefix, String... args)
getInstance.
commandPrefix - a char.allowEmbeddedCommandPrefix - a boolean.args - a String object.IParserInput object.public static IParserInput getInstance(char commandPrefix, File args) throws IOException
getInstance.
commandPrefix - a char.args - a File object.IParserInput object.IOException - if any.public static IParserInput getInstance(char commandPrefix, String... args)
getInstance.
commandPrefix - a char.args - a String object.IParserInput object.public static String unparseTokens(List<ICmdLineArg<?>> args)
unparseTokens.
public static void unparseTokens(List<ICmdLineArg<?>> args, StringBuilder out)
unparseTokens.
args - a List object.out - a StringBuilder object.public Token[] parseTokens()
parseTokens.
parseTokens in interface IParserInputToken objects.public String substring(int inclusiveStart, int exclusiveEnd)
substring.
substring in interface IParserInputinclusiveStart - a int.exclusiveEnd - a int.String object.