public static interface IArgParser.Stated<T,S> extends IArgParser<T>
ICommandArgument, but it also
takes a second argument that can be any type, referred to as the state.IArgParser.Stated<T,S>, IArgParser.Stateless<T>| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<S> |
getStateType() |
T |
parseArg(ICommandArgument arg,
S state) |
getTargetjava.lang.Class<S> getStateType()
T parseArg(ICommandArgument arg, S state) throws java.lang.Exception
arg - The argument to parse.state - Can be anything.java.lang.RuntimeException - if you want the parsing to fail. The exception will be caught and turned into an
appropriate error.java.lang.Exception