|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.util.GetOpts
public final class GetOpts
This class splits the input String into its arguments and checks if there is a path expression.
| Constructor Summary | |
|---|---|
GetOpts(java.lang.String arguments,
java.lang.String options)
Construct a basic Getopt instance with the given input data. |
|
| Method Summary | |
|---|---|
StringList |
getFoundArgs()
getFoundArgs is used to return all parsed arguments like source_file target_file. |
int |
getopt()
This method checks the string passed from the command line. |
java.lang.String |
getOptarg()
For communication to the caller. |
java.lang.String |
getPath()
getPath is used to store a path expression. |
boolean |
more()
Checks if more options can be returned. |
int |
next()
Returns the next option. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GetOpts(java.lang.String arguments,
java.lang.String options)
arguments - The String passed from the command lineoptions - A String containing a description of the
valid options| Method Detail |
|---|
public java.lang.String getOptarg()
public StringList getFoundArgs()
public java.lang.String getPath()
public boolean more()
public int next()
public int getopt()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||