public class PluginParameters
extends java.lang.Object
| Constructor and Description |
|---|
PluginParameters() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPluginParameter(@NotNull java.lang.String name,
@Nullable java.lang.Object value)
Defines a variable to be passed to plugins.
|
void |
setInterpreterValues(@NotNull bsh.Interpreter interpreter,
@NotNull PluginRunMode pluginRunMode)
Adds variables to a
Interpreter instance. |
public void addPluginParameter(@NotNull
@NotNull java.lang.String name,
@Nullable
@Nullable java.lang.Object value)
name - the variable namevalue - the variable's valuepublic void setInterpreterValues(@NotNull
@NotNull bsh.Interpreter interpreter,
@NotNull
@NotNull PluginRunMode pluginRunMode)
throws bsh.EvalError
Interpreter instance.interpreter - the interpreter to modifypluginRunMode - the plugin run mode to usebsh.EvalError - if a variable cannot be set