|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcrystalspace.jbind.impl.csNativeObject
crystalspace.jbind.impl.csutil.scf.csBase
crystalspace.jbind.impl.csutil.cmdline.csCommandLineParser
| Field Summary |
| Fields inherited from class crystalspace.jbind.impl.csNativeObject |
ImplFactory, nPointer |
| Constructor Summary | |
csCommandLineParser(iPointer nPointer)
|
|
| Method Summary | |
void |
addName(java.lang.String iName)
Add a command-line name to the command-line names array. |
void |
addOption(java.lang.String iName,
java.lang.String iValue)
Add a command-line option to the command-line option array. |
java.lang.String |
getAppDir()
Returns the directory in which the application executable resides; or the directory in which the Cocoa application wrapper resides on MacOS/X. |
java.lang.String |
getAppPath()
Returns the full path to the application executable. |
boolean |
getBoolOption(java.lang.String iName)
Check for a -[no]option toggle. |
boolean |
getBoolOption(java.lang.String iName,
boolean defaultValue)
Check for a -[no]option toggle. |
static java.lang.Class |
getInterfaceClass()
|
static java.lang.String |
getInterfaceName()
|
static int |
getInterfaceVersion()
|
java.lang.String |
getName()
Query filename specified on commandline (that is, without leading '-');. |
java.lang.String |
getName(int iIndex)
Query filename specified on commandline (that is, without leading '-');. |
java.lang.String |
getOption(java.lang.String iName)
Query specific commandline option (you can query second etc. such option);. |
java.lang.String |
getOption(java.lang.String iName,
int iIndex)
Query specific commandline option (you can query second etc. such option);. |
java.lang.String |
getResourceDir()
Returns the directory in which the application's resources resides. |
int |
getVersion()
Return the version of the interface |
void |
initialize(java.lang.String[] argv)
Initialize for the given command line. |
static void |
initSCF()
|
protected boolean |
isNativePointerValidSafe(long pointer)
|
boolean |
replaceName(java.lang.String iValue)
Replace the Nth command-line name with a new value. |
boolean |
replaceName(java.lang.String iValue,
int iIndex)
Replace the Nth command-line name with a new value. |
boolean |
replaceOption(java.lang.String iName,
java.lang.String iValue)
Replace the Nth command-line option with a new value. |
boolean |
replaceOption(java.lang.String iName,
java.lang.String iValue,
int iIndex)
Replace the Nth command-line option with a new value. |
void |
reset()
Clear all options and names. |
| Methods inherited from class crystalspace.jbind.impl.csutil.scf.csBase |
decRef, equals, finalize, getRefCount, incRef, nDelete, queryInterface, queryInterfaceSafe |
| Methods inherited from class crystalspace.jbind.impl.csNativeObject |
changePointer, getPointer, getPointer, getPointerArray, hashCode, isMemoryOwner, isNativePointerValid, newNativeObject, setMemoryOwner, toString |
| Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface crystalspace.jbind.interfaces.iutil.scf.iBase |
decRef, getRefCount, incRef, queryInterface, queryInterfaceSafe |
| Methods inherited from interface crystalspace.jbind.interfaces.iPointer |
changePointer, getPointer, isMemoryOwner, setMemoryOwner |
| Constructor Detail |
public csCommandLineParser(iPointer nPointer)
nPointer - | Method Detail |
public int getVersion()
iBase
getVersion in interface iBasegetVersion in class csBasepublic java.lang.String getName()
iCommandLineParser
getName in interface iCommandLineParsergetName in class csBasepublic static void initSCF()
public static int getInterfaceVersion()
public static java.lang.String getInterfaceName()
public static java.lang.Class getInterfaceClass()
protected boolean isNativePointerValidSafe(long pointer)
isNativePointerValidSafe in class csNativeObjectpublic void addName(java.lang.String iName)
iCommandLineParser
addName in interface iCommandLineParseriName - iCommandLineParser.addName(java.lang.String)
public void addOption(java.lang.String iName,
java.lang.String iValue)
iCommandLineParser
addOption in interface iCommandLineParseriName - iValue - iCommandLineParser.addOption(java.lang.String, java.lang.String)public java.lang.String getAppDir()
iCommandLineParser
getAppDir in interface iCommandLineParseriCommandLineParser.getAppDir()public java.lang.String getAppPath()
iCommandLineParser
getAppPath in interface iCommandLineParseriCommandLineParser.getAppPath()
public boolean getBoolOption(java.lang.String iName,
boolean defaultValue)
iCommandLineParser
getBoolOption in interface iCommandLineParseriName - defaultValue -
iCommandLineParser.getBoolOption(java.lang.String, boolean)public boolean getBoolOption(java.lang.String iName)
iCommandLineParser
getBoolOption in interface iCommandLineParseriName -
iCommandLineParser.getBoolOption(java.lang.String)public java.lang.String getName(int iIndex)
iCommandLineParser
getName in interface iCommandLineParseriIndex -
iCommandLineParser.getName(int)
public java.lang.String getOption(java.lang.String iName,
int iIndex)
iCommandLineParser
getOption in interface iCommandLineParseriName - iIndex -
iCommandLineParser.getOption(java.lang.String, int)public java.lang.String getOption(java.lang.String iName)
iCommandLineParser
getOption in interface iCommandLineParseriName -
iCommandLineParser.getOption(java.lang.String)public java.lang.String getResourceDir()
iCommandLineParser
getResourceDir in interface iCommandLineParseriCommandLineParser.getResourceDir()public void initialize(java.lang.String[] argv)
iCommandLineParser
initialize in interface iCommandLineParserargv - iCommandLineParser.initialize(java.lang.String[])
public boolean replaceName(java.lang.String iValue,
int iIndex)
iCommandLineParser
replaceName in interface iCommandLineParseriValue - iIndex -
iCommandLineParser.replaceName(java.lang.String, int)public boolean replaceName(java.lang.String iValue)
iCommandLineParser
replaceName in interface iCommandLineParseriValue -
iCommandLineParser.replaceName(java.lang.String)
public boolean replaceOption(java.lang.String iName,
java.lang.String iValue,
int iIndex)
iCommandLineParser
replaceOption in interface iCommandLineParseriName - iValue - iIndex -
iCommandLineParser.replaceOption(java.lang.String, java.lang.String, int)
public boolean replaceOption(java.lang.String iName,
java.lang.String iValue)
iCommandLineParser
replaceOption in interface iCommandLineParseriName - iValue -
iCommandLineParser.replaceOption(java.lang.String, java.lang.String)public void reset()
iCommandLineParser
reset in interface iCommandLineParseriCommandLineParser.reset()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||