|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object crystalspace.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 iBase
getVersion
in class csBase
public java.lang.String getName()
iCommandLineParser
getName
in interface iCommandLineParser
getName
in class csBase
public 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 csNativeObject
public void addName(java.lang.String iName)
iCommandLineParser
addName
in interface iCommandLineParser
iName
- iCommandLineParser.addName(java.lang.String)
public void addOption(java.lang.String iName, java.lang.String iValue)
iCommandLineParser
addOption
in interface iCommandLineParser
iName
- iValue
- iCommandLineParser.addOption(java.lang.String, java.lang.String)
public java.lang.String getAppDir()
iCommandLineParser
getAppDir
in interface iCommandLineParser
iCommandLineParser.getAppDir()
public java.lang.String getAppPath()
iCommandLineParser
getAppPath
in interface iCommandLineParser
iCommandLineParser.getAppPath()
public boolean getBoolOption(java.lang.String iName, boolean defaultValue)
iCommandLineParser
getBoolOption
in interface iCommandLineParser
iName
- defaultValue
-
iCommandLineParser.getBoolOption(java.lang.String, boolean)
public boolean getBoolOption(java.lang.String iName)
iCommandLineParser
getBoolOption
in interface iCommandLineParser
iName
-
iCommandLineParser.getBoolOption(java.lang.String)
public java.lang.String getName(int iIndex)
iCommandLineParser
getName
in interface iCommandLineParser
iIndex
-
iCommandLineParser.getName(int)
public java.lang.String getOption(java.lang.String iName, int iIndex)
iCommandLineParser
getOption
in interface iCommandLineParser
iName
- iIndex
-
iCommandLineParser.getOption(java.lang.String, int)
public java.lang.String getOption(java.lang.String iName)
iCommandLineParser
getOption
in interface iCommandLineParser
iName
-
iCommandLineParser.getOption(java.lang.String)
public java.lang.String getResourceDir()
iCommandLineParser
getResourceDir
in interface iCommandLineParser
iCommandLineParser.getResourceDir()
public void initialize(java.lang.String[] argv)
iCommandLineParser
initialize
in interface iCommandLineParser
argv
- iCommandLineParser.initialize(java.lang.String[])
public boolean replaceName(java.lang.String iValue, int iIndex)
iCommandLineParser
replaceName
in interface iCommandLineParser
iValue
- iIndex
-
iCommandLineParser.replaceName(java.lang.String, int)
public boolean replaceName(java.lang.String iValue)
iCommandLineParser
replaceName
in interface iCommandLineParser
iValue
-
iCommandLineParser.replaceName(java.lang.String)
public boolean replaceOption(java.lang.String iName, java.lang.String iValue, int iIndex)
iCommandLineParser
replaceOption
in interface iCommandLineParser
iName
- 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 iCommandLineParser
iName
- iValue
-
iCommandLineParser.replaceOption(java.lang.String, java.lang.String)
public void reset()
iCommandLineParser
reset
in interface iCommandLineParser
iCommandLineParser.reset()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |