|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.echarts.util.GetOpt
public class GetOpt
A class to implement UNIX-style (single-character) command arguments
Field Summary | |
---|---|
protected boolean |
done
Internal flag - whether we are done all the options |
static int |
DONE
Public constant for "no more options" XXX should switch to hasNext()/next() pattern. |
protected java.lang.String |
optarg
The option argument, if there is one. |
protected int |
optind
Where we are in the options |
protected java.lang.String |
pattern
The set of characters to look for |
Constructor Summary | |
---|---|
GetOpt(java.lang.String patt)
|
Method Summary | |
---|---|
char |
getopt(java.lang.String[] argv)
Return one argument. |
int |
getOptInd()
Retrieve the option index |
java.lang.String |
optarg()
Retrieve the current option argument |
void |
rewind()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String pattern
protected int optind
public static final int DONE
protected boolean done
protected java.lang.String optarg
Constructor Detail |
---|
public GetOpt(java.lang.String patt)
Method Detail |
---|
public int getOptInd()
public java.lang.String optarg()
public void rewind()
public char getopt(java.lang.String[] argv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |