|
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(String[] args)
Constructs a new CommandLineTokenStream on the given arguments. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Returns whether a further token is available. |
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. |
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(String[] args)
args - | Method Detail |
|---|
public boolean hasNext()
public boolean nextIsShortOption()
public boolean nextIsLongOption()
public boolean nextIsFileArgument()
public boolean nextIsParameter()
public String next()
public char nextShortOption()
public String nextLongOption()
|
TUM CCSM Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||