public interface ArgumentStack
Modifier and Type | Method and Description |
---|---|
CommandContext |
getContext()
Get the underlying context.
|
void |
markConsumed()
Set as completely consumed.
|
java.lang.String |
next()
Get the next string, which may come from the stack or a value flag.
|
java.lang.Boolean |
nextBoolean()
Get the next boolean, which may come from the stack or a value flag.
|
java.lang.Double |
nextDouble()
Get the next double, which may come from the stack or a value flag.
|
java.lang.Integer |
nextInt()
Get the next integer, which may come from the stack or a value flag.
|
java.lang.String |
remaining()
Get all remaining string values, which will consume the rest of the stack.
|
java.lang.String next() throws ParameterException
ParameterException
- on a parameter errorjava.lang.Integer nextInt() throws ParameterException
ParameterException
- on a parameter errorjava.lang.Double nextDouble() throws ParameterException
ParameterException
- on a parameter errorjava.lang.Boolean nextBoolean() throws ParameterException
ParameterException
- on a parameter errorjava.lang.String remaining() throws ParameterException
ParameterException
- on a parameter errorvoid markConsumed()
CommandContext getContext()