E - The type of the executorpublic class ExecutionContext<E>
extends java.lang.Object
| Constructor and Description |
|---|
ExecutionContext(ArgumentComparator argumentComparator,
E executor,
boolean isExecution) |
| Modifier and Type | Method and Description |
|---|---|
void |
addArgument(java.lang.String name,
java.lang.Object value)
Add a parsed argument.
|
<T> T |
getArgument(java.lang.String name)
Get a parsed argument by its name.
|
ArgumentComparator |
getArgumentComparator() |
java.util.Map<java.lang.String,java.lang.Object> |
getArguments() |
E |
getExecutor() |
boolean |
isExecution() |
public ExecutionContext(ArgumentComparator argumentComparator, E executor, boolean isExecution)
public ArgumentComparator getArgumentComparator()
public E getExecutor()
public java.util.Map<java.lang.String,java.lang.Object> getArguments()
@Nonnull public <T> T getArgument(java.lang.String name)
T - The type of the argumentname - The name of the argumentjava.lang.IllegalArgumentException - If the argument does not existpublic void addArgument(java.lang.String name,
java.lang.Object value)
name - The name of the argumentvalue - The value of the argumentpublic boolean isExecution()