public class Interpreter extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Interpreter.ProcessInterrupter |
Constructor and Description |
---|
Interpreter(Node root) |
Modifier and Type | Method and Description |
---|---|
Map<String,Executor> |
getExecutorMap() |
Map<Object,Object> |
getGvars() |
Map<String,Placeholder> |
getPlaceholderMap() |
SelfReference |
getSelfReference() |
Map<String,Object> |
getVars()
Map of local variables.
|
boolean |
isStopFlag() |
boolean |
isSync() |
boolean |
isWaitFlag() |
static void |
main(String[] ar) |
void |
setExecutorMap(Map<String,Executor> executorMap) |
void |
setGvars(Map<Object,Object> gvars) |
void |
setPlaceholderMap(Map<String,Placeholder> placeholderMap) |
void |
setSelfReference(SelfReference selfReference) |
void |
setSync(boolean sync) |
void |
setTaskSupervisor(TaskSupervisor taskSupervisor) |
void |
setVars(Map<String,Object> vars) |
void |
startWithContext(Object context) |
void |
startWithContext(Object context,
Timings.Timing timing)
Start interpretation.
|
void |
startWithContextAndInterrupter(Object context,
Interpreter.ProcessInterrupter interrupter,
Timings.Timing timing)
Start interpretation.
|
public Interpreter(Node root)
public void setTaskSupervisor(TaskSupervisor taskSupervisor)
public Map<String,Placeholder> getPlaceholderMap()
public void setPlaceholderMap(Map<String,Placeholder> placeholderMap)
public SelfReference getSelfReference()
public void setSelfReference(SelfReference selfReference)
public boolean isStopFlag()
public boolean isWaitFlag()
public boolean isSync()
public void setSync(boolean sync)
public Map<String,Object> getVars()
public void startWithContext(Object context) throws InterpreterException
InterpreterException
public void startWithContext(Object context, Timings.Timing timing) throws InterpreterException
context
- The context that can be used by Executors. This is usually Event object for Bukkit plugin.InterpreterException
public void startWithContextAndInterrupter(Object context, Interpreter.ProcessInterrupter interrupter, Timings.Timing timing) throws InterpreterException
context
- The context that can be used by Executors. This is usually Event object for Bukkit plugin.interrupter
- gives the caller to interrupt the executionInterpreterException