public class CommandLineTokenStream extends java.lang.Object
CommandLine
.Constructor and Description |
---|
CommandLineTokenStream(java.lang.String[] args)
Constructs a new CommandLineTokenStream on the given arguments.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Returns whether a further token is available.
|
java.lang.String |
next()
Returns the next token as a plain string.
|
boolean |
nextIsFileArgument()
Returns whether the next token is available and can be used as a file
argument.
|
boolean |
nextIsLongOption()
Returns whether the next token is available and is a long option.
|
boolean |
nextIsParameter()
Returns whether the next token is available and can be used as a
parameter to an option.
|
boolean |
nextIsSeparator()
Returns whether the next token is the argument separator "--".
|
boolean |
nextIsShortOption()
Returns whether the next token is available and is a short option.
|
java.lang.String |
nextLongOption()
Returns the next token as a long option.
|
char |
nextShortOption()
Returns the next token as a short option.
|
public CommandLineTokenStream(java.lang.String[] args)
public boolean hasNext()
public boolean nextIsSeparator()
public boolean nextIsShortOption()
public boolean nextIsLongOption()
public boolean nextIsFileArgument()
public boolean nextIsParameter()
public java.lang.String next()
public char nextShortOption()
public java.lang.String nextLongOption()