|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cc.mallet.util.CommandOption
public abstract class CommandOption
Nested Class Summary | |
---|---|
static class |
CommandOption.Boolean
|
static class |
CommandOption.Double
|
static class |
CommandOption.DoubleArray
|
static class |
CommandOption.File
|
static class |
CommandOption.Integer
|
static class |
CommandOption.IntegerArray
|
static class |
CommandOption.List
|
static interface |
CommandOption.ListProviding
For objects that can provide CommandOption.List's (which can be merged into other lists. |
static class |
CommandOption.Object
|
static class |
CommandOption.ObjectFromBean
|
static class |
CommandOption.Set
|
static class |
CommandOption.SpacedStrings
|
static class |
CommandOption.String
|
Constructor Summary | |
---|---|
CommandOption(java.lang.Class owner,
java.lang.String name,
java.lang.String argName,
java.lang.Class argType,
boolean argRequired,
java.lang.String shortdoc)
Deprecated. |
|
CommandOption(java.lang.Class owner,
java.lang.String name,
java.lang.String argName,
java.lang.Class argType,
boolean argRequired,
java.lang.String shortdoc,
java.lang.String longdoc)
|
Method Summary | |
---|---|
abstract java.lang.String |
defaultValueToString()
|
java.lang.String |
getFullName()
|
static BshInterpreter |
getInterpreter()
|
static CommandOption.List |
getList(java.lang.Class owner)
|
java.lang.String |
getName()
|
void |
parseArg(java.lang.String arg)
|
int |
parseArg(java.lang.String[] args,
int index)
Called after this CommandOption matches an argument. |
void |
postParsing(CommandOption.List list)
To be overridden by subclasses; "list" is the the CommandOption.List that called this option |
static void |
printOptionValues(java.lang.Class owner)
|
static java.lang.String[] |
process(java.lang.Class owner,
java.lang.String[] args)
|
int |
process(java.lang.String[] args,
int index)
Give this CommandOption the opportunity to process the index'th argument in args. |
static void |
setSummary(java.lang.Class owner,
java.lang.String summary)
|
abstract java.lang.String |
valueToString()
|
boolean |
wasInvoked()
Return true is this CommandOption was matched by one of the processed arguments. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CommandOption(java.lang.Class owner, java.lang.String name, java.lang.String argName, java.lang.Class argType, boolean argRequired, java.lang.String shortdoc, java.lang.String longdoc)
public CommandOption(java.lang.Class owner, java.lang.String name, java.lang.String argName, java.lang.Class argType, boolean argRequired, java.lang.String shortdoc)
Method Detail |
---|
public int process(java.lang.String[] args, int index)
public static BshInterpreter getInterpreter()
public static java.lang.String[] process(java.lang.Class owner, java.lang.String[] args)
public static CommandOption.List getList(java.lang.Class owner)
public static void setSummary(java.lang.Class owner, java.lang.String summary)
public java.lang.String getFullName()
public java.lang.String getName()
public abstract java.lang.String defaultValueToString()
public abstract java.lang.String valueToString()
public boolean wasInvoked()
public int parseArg(java.lang.String[] args, int index)
public void parseArg(java.lang.String arg)
public void postParsing(CommandOption.List list)
public static void printOptionValues(java.lang.Class owner)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |