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