| Package | Description |
|---|---|
| com.sk89q.intake.argument | |
| com.sk89q.intake.internal.parametric | |
| com.sk89q.intake.parametric | |
| com.sk89q.intake.parametric.handler |
| Modifier and Type | Class and Description |
|---|---|
class |
ArgumentParseException
Thrown when an argument has been provided that is incorrect.
|
class |
MissingArgumentException
Thrown when the user has not provided a sufficient number of arguments,
which may include positional arguments and/or flag arguments.
|
class |
UnusedArgumentException
Thrown when there are unused arguments because the user has provided
excess arguments.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
InternalInjector.getInstance(Class<T> type,
CommandArgs arguments,
List<? extends Annotation> modifiers) |
<T> T |
InternalInjector.getInstance(Key<T> key,
CommandArgs arguments,
List<? extends Annotation> modifiers) |
| Modifier and Type | Method and Description |
|---|---|
T |
Provider.get(CommandArgs arguments,
List<? extends Annotation> modifiers)
Provide a value given the arguments.
|
<T> T |
Injector.getInstance(Class<T> type,
CommandArgs arguments,
List<? extends Annotation> modifiers)
Attempt to provide a value for the given class using the given
arguments.
|
<T> T |
Injector.getInstance(Key<T> key,
CommandArgs arguments,
List<? extends Annotation> modifiers)
Attempt to provide a value for the given key using the given
arguments.
|
Object[] |
ArgumentParser.parseArguments(CommandArgs args)
Parse the given arguments into Java objects.
|
Object[] |
ArgumentParser.parseArguments(CommandArgs args,
boolean ignoreUnusedFlags,
Set<Character> unusedFlags)
Parse the given arguments into Java objects.
|
| Modifier and Type | Method and Description |
|---|---|
void |
InvokeHandler.postInvoke(List<? extends Annotation> annotations,
ArgumentParser parser,
Object[] args,
CommandArgs commandArgs)
Called after the command has been executed.
|
void |
LegacyCommandsHandler.postInvoke(List<? extends Annotation> annotations,
ArgumentParser parser,
Object[] args,
CommandArgs commandArgs) |
boolean |
InvokeHandler.preInvoke(List<? extends Annotation> annotations,
ArgumentParser parser,
Object[] args,
CommandArgs commandArgs)
Called after arguments have been parsed but the command has yet
to be executed.
|
boolean |
LegacyCommandsHandler.preInvoke(List<? extends Annotation> annotations,
ArgumentParser parser,
Object[] args,
CommandArgs commandArgs) |
boolean |
InvokeHandler.preProcess(List<? extends Annotation> annotations,
ArgumentParser parser,
CommandArgs commandArgs)
Called before arguments have been parsed.
|
boolean |
LegacyCommandsHandler.preProcess(List<? extends Annotation> annotations,
ArgumentParser parser,
CommandArgs commandArgs) |
Copyright © 2015. All Rights Reserved.