public class PluginArgument extends Object implements Serializable
Plugin constuctor.| Constructor and Description |
|---|
PluginArgument(int index)
Creates a new plugin argument assignment.
|
PluginArgument(int index,
Object value)
Creates a new plugin argument assignment.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIndex()
Returns the argument index.
|
Object |
getValue()
Returns the argument value.
|
void |
setIndex(int index)
Sets the argument index.
|
void |
setValue(Object value)
Sets the argument value.
|
protected Plugin.Factory.UsingReflection.ArgumentResolver |
toArgumentResolver()
Resolves this plugin argument to an argument resolver.
|
@Inject public PluginArgument(int index)
index - The argument index.public PluginArgument(int index,
@MaybeNull
Object value)
index - The argument index.value - The argument value.@Input public int getIndex()
public void setIndex(int index)
index - The argument index.@MaybeNull @Optional @Input public Object getValue()
public void setValue(@MaybeNull Object value)
value - The argument value.protected Plugin.Factory.UsingReflection.ArgumentResolver toArgumentResolver()