public interface IDatatypeFor<T> extends IDatatype
IDatatype
which acts as a Supplier
, in essence. The only difference
is that it requires an IDatatypeContext
to be provided due to the expectation that
implementations of IDatatype
are singletons.Modifier and Type | Method and Description |
---|---|
T |
get(IDatatypeContext ctx)
Consumes the desired amount of arguments from the specified
IDatatypeContext , and
then returns the parsed value. |
tabComplete
T get(IDatatypeContext ctx) throws CommandException
IDatatypeContext
, and
then returns the parsed value. This method will more than likely return a IllegalArgumentException
if the expected input does not conform to a parseable value. As far as a CommandException
being
thrown is concerned, see the note below for specifics.ctx
- The contextCommandException
- If there was an issue parsing using another type or arguments could not be polled.IDatatypeContext