|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.util.Args
public final class Args
This class parses command-line arguments.
Constructor Summary | |
---|---|
Args(java.lang.String[] a,
java.lang.Object o,
java.lang.String u,
java.lang.String h)
Default constructor. |
Method Summary | |
---|---|
boolean |
dash()
Checks if the current argument starts with a dash (i.e., introduces any flags). |
boolean |
more()
Checks if more arguments are available. |
char |
next()
Returns the next flag. |
int |
number()
Returns the next positive numeric argument. |
java.lang.String |
string()
Returns the next string argument. |
java.lang.String |
toString()
|
void |
usage()
Throws an exception with the command usage info. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Args(java.lang.String[] a, java.lang.Object o, java.lang.String u, java.lang.String h)
a
- argumentso
- calling objectu
- usage infoh
- headerMethod Detail |
---|
public boolean more()
public boolean dash()
public char next()
public java.lang.String string()
public int number() throws BaseXException
BaseXException
- database exceptionpublic void usage() throws BaseXException
BaseXException
- database exceptionpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |