| Package | Description |
|---|---|
| com.sk89q.intake.parametric | |
| com.sk89q.intake.parametric.argument | |
| com.sk89q.intake.parametric.binding | |
| com.sk89q.intake.parametric.handler |
| Modifier and Type | Class and Description |
|---|---|
class |
MissingParameterException
Thrown when there is a missing parameter.
|
class |
UnconsumedParameterException
Thrown when there are leftover parameters that were not consumed, particular in the
case of the user providing too many parameters.
|
| Modifier and Type | Method and Description |
|---|---|
String |
ArgumentStack.next()
Get the next string, which may come from the stack or a value flag.
|
String |
StringArgumentStack.next() |
String |
ContextArgumentStack.next() |
Boolean |
ArgumentStack.nextBoolean()
Get the next boolean, which may come from the stack or a value flag.
|
Boolean |
StringArgumentStack.nextBoolean() |
Boolean |
ContextArgumentStack.nextBoolean() |
Double |
ArgumentStack.nextDouble()
Get the next double, which may come from the stack or a value flag.
|
Double |
StringArgumentStack.nextDouble() |
Double |
ContextArgumentStack.nextDouble() |
Integer |
ArgumentStack.nextInt()
Get the next integer, which may come from the stack or a value flag.
|
Integer |
StringArgumentStack.nextInt() |
Integer |
ContextArgumentStack.nextInt() |
String |
ArgumentStack.remaining()
Get all remaining string values, which will consume the rest of the stack.
|
String |
StringArgumentStack.remaining() |
String |
ContextArgumentStack.remaining() |
| Modifier and Type | Method and Description |
|---|---|
Object |
BindingHelper.bind(ParameterData parameter,
ArgumentStack scoped,
boolean onlyConsume) |
Object |
Binding.bind(ParameterData parameter,
ArgumentStack scoped,
boolean onlyConsume)
Attempt to consume values (if required) from the given
ArgumentStack
in order to instantiate an object for the given parameter. |
Boolean |
PrimitiveBindings.getBoolean(ArgumentStack context)
Gets a type from a
ArgumentStack. |
Double |
PrimitiveBindings.getDouble(ArgumentStack context,
Annotation[] modifiers)
Gets a type from a
ArgumentStack. |
Float |
PrimitiveBindings.getFloat(ArgumentStack context,
Annotation[] modifiers)
Gets a type from a
ArgumentStack. |
Integer |
PrimitiveBindings.getInteger(ArgumentStack context,
Annotation[] modifiers)
Gets a type from a
ArgumentStack. |
Short |
PrimitiveBindings.getShort(ArgumentStack context,
Annotation[] modifiers)
Gets a type from a
ArgumentStack. |
String |
PrimitiveBindings.getString(ArgumentStack context,
Annotation[] modifiers)
Gets a type from a
ArgumentStack. |
String |
PrimitiveBindings.getText(ArgumentStack context,
Text text,
Annotation[] modifiers)
Gets a type from a
ArgumentStack. |
| Modifier and Type | Method and Description |
|---|---|
void |
InvokeHandler.postInvoke(Object object,
Method method,
ParameterData[] parameters,
Object[] args,
CommandContext context,
CommandLocals locals)
Called after the parameter is invoked.
|
boolean |
InvokeHandler.preInvoke(Object object,
Method method,
ParameterData[] parameters,
Object[] args,
CommandContext context,
CommandLocals locals)
Called before the parameter is invoked.
|
boolean |
LegacyCommandsHandler.preInvoke(Object object,
Method method,
ParameterData[] parameters,
Object[] args,
CommandContext context,
CommandLocals locals) |
boolean |
InvokeHandler.preProcess(Object object,
Method method,
ParameterData[] parameters,
CommandContext context,
CommandLocals locals)
Called before parameters are processed.
|
boolean |
LegacyCommandsHandler.preProcess(Object object,
Method method,
ParameterData[] parameters,
CommandContext context,
CommandLocals locals) |
Copyright © 2015. All Rights Reserved.