public interface ICmdLine extends Comparable<ICmdLine>, ICmdLineArg<ICmdLine>
ICmdLine interface.
| Modifier and Type | Method and Description |
|---|---|
void |
add(ICmdLineArg<?> arg)
add.
|
void |
add(int index,
ICmdLineArg<?> arg)
add.
|
void |
addDefaultIncludeDirectory(File directory)
addDefaultIncludeDirectory.
|
List<ICmdLineArg<?>> |
allArgs()
allArgs.
|
ICmdLineArg<?> |
arg(String commandToken)
arg.
|
ICmdLineArg<?> |
argForVariableName(String variableName)
argForVariableName.
|
void |
assignVariables(Object target)
assignVariables.
|
ICmdLine |
clone()
clone.
|
char |
getCommandPrefix()
getCommandPrefix.
|
String |
getName()
getName.
|
List<ParseException> |
getParseExceptions()
getParseExceptions.
|
int |
indexOf(ICmdLineArg<?> arg)
indexOf.
|
Object |
parse(IParserInput cmd)
parse.
|
Object |
parse(IParserInput cmd,
Object target)
parse.
|
Object |
parse(Object target,
String... args)
parse.
|
Object |
parse(String... args)
parse.
|
void |
pull(Object variableSource)
pull.
|
void |
remove(ICmdLineArg<?> arg)
remove.
|
void |
remove(int argIndex)
remove.
|
int |
size()
size.
|
compareToapplyDefaults, asDefinedType, asEnum, asEnumArray, convert, convert, defaultInstanceClass, dontAllowCamelCaps, exportCommandLine, exportCommandLine, exportNamespace, exportNamespace, exportXml, exportXml, genericClassName, getCamelCaps, getCriteria, getDefaultValues, getDelegateOrValue, getDelegateOrValue, getEnumClassName, getFactoryArgName, getFactoryMethodName, getFormat, getHelp, getInstanceClass, getKeychar, getKeyword, getMetaphone, getMultipleMax, getMultipleMin, getUniqueId, getValue, getValue, getValueAsbyteArray, getValueAsByteArray, getValueAsCalendarArray, getValueAsCharacterArray, getValueAscharArray, getValueAsDateArray, getValueAsDateTimeFormatter, getValueAsDateTimeFormatterArray, getValueAsdoubleArray, getValueAsDoubleArray, getValueAsEquation, getValueAsEquationArray, getValueAsFileArray, getValueAsfloatArray, getValueAsFloatArray, getValueAsintArray, getValueAsIntegerArray, getValueAsLocalDateArray, getValueAsLocalDateTimeArray, getValueAsLocalTimeArray, getValueAslongArray, getValueAsLongArray, getValueAsPattern, getValueAsPatternArray, getValueAsSimpleDateFormat, getValueAsSimpleDateFormatArray, getValueAsStringArray, getVariable, hasValue, isCamelCapsAllowed, isCaseSensitive, isMetaphoneAllowed, isMultiple, isParsed, isPositional, isRequired, isRequiredValue, isSystemGenerated, reset, resetCriteria, salience, setCamelCapsAllowed, setCaseSensitive, setDefaultValue, setEnumCriteria, setEnumCriteriaAllowError, setFactoryArgName, setFactoryMethodName, setFormat, setHelp, setInstanceClass, setKeychar, setKeyword, setListCriteria, setMetaphoneAllowed, setMultiple, setMultiple, setMultiple, setObject, setParsed, setPositional, setRangeCriteria, setRegxCriteria, setRequired, setRequiredValue, setSystemGenerated, setType, setUniqueId, setValue, setValue, setVariable, supportsCamelCaps, supportsCaseSensitive, supportsDefaultValues, supportsExcludeArgs, supportsFactoryArgName, supportsFactoryMethod, supportsFormat, supportsHelp, supportsInList, supportsInstanceClass, supportsLongName, supportsMatches, supportsMetaphone, supportsMultimax, supportsMultimin, supportsPositional, supportsRange, supportsRequired, supportsShortName, useDefaultsvoid add(ICmdLineArg<?> arg)
add.
arg - a ICmdLineArg object.void add(int index,
ICmdLineArg<?> arg)
add.
index - a int.arg - a ICmdLineArg object.void addDefaultIncludeDirectory(File directory)
addDefaultIncludeDirectory.
directory - a File object.List<ICmdLineArg<?>> allArgs()
allArgs.
List object.ICmdLineArg<?> arg(String commandToken)
arg.
commandToken - a String object.ICmdLineArg object.ICmdLineArg<?> argForVariableName(String variableName) throws ParseException
argForVariableName.
variableName - a String object.ICmdLineArg object.ParseException - if any.void assignVariables(Object target) throws ParseException
assignVariables.
target - a Object object.ParseException - if any.ICmdLine clone() throws CloneNotSupportedException
clone.
clone in interface ICmdLineArg<ICmdLine>ICmdLineArg object.CloneNotSupportedException - if any.char getCommandPrefix()
getCommandPrefix.
List<ParseException> getParseExceptions()
getParseExceptions.
List object.int indexOf(ICmdLineArg<?> arg)
indexOf.
arg - a ICmdLineArg object.Object parse(IParserInput cmd) throws IOException, ParseException
parse.
cmd - a IParserInput object.Object object.IOException - if any.ParseException - if any.Object parse(IParserInput cmd, Object target) throws IOException, ParseException
parse.
cmd - a IParserInput object.target - a Object object.Object object.IOException - if any.ParseException - if any.Object parse(Object target, String... args) throws IOException, ParseException
parse.
target - a Object object.args - a String object.Object object.IOException - if any.ParseException - if any.Object parse(String... args) throws IOException, ParseException
parse.
args - a String object.Object object.IOException - if any.ParseException - if any.void pull(Object variableSource) throws ParseException
pull.
variableSource - a Object object.ParseException - if any.void remove(ICmdLineArg<?> arg)
remove.
arg - a ICmdLineArg object.void remove(int argIndex)
remove.
argIndex - a int.int size()
size.
size in interface ICmdLineArg<ICmdLine>