|
TUM CCSM Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.tum.cs.commons.options.CommandLineTokenStream
public class CommandLineTokenStream
This class preprocesses the command line arguments by splitting them into
several tokens. It supports the GNU style syntax as described in
CommandLine
.
Constructor Summary | |
---|---|
CommandLineTokenStream(java.lang.String[] args)
Constructs a new CommandLineTokenStream on the given arguments. |
Method Summary | |
---|---|
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 |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommandLineTokenStream(java.lang.String[] args)
args
- Method Detail |
---|
public boolean hasNext()
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()
|
TUM CCSM Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |