public final class MainParser extends Object
Constructor and Description |
---|
MainParser(Main main)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
String |
string()
Returns the next string argument.
|
BaseXException |
usage()
Returns an exception with the command usage info.
|
public MainParser(Main main)
main
- calling objectpublic boolean more()
public boolean dash()
public char next()
public String string()
public int number() throws BaseXException
BaseXException
- database exceptionpublic BaseXException usage()
Copyright © 2005–2015 BaseX Team. All rights reserved.