public interface Interpretation
| Modifier and Type | Method and Description |
|---|---|
<E extends Exception> |
execute(org.panda_lang.utilities.commons.function.ThrowingRunnable<E> task)
Execute the given task
|
<T,E extends Exception> |
execute(org.panda_lang.utilities.commons.function.ThrowingSupplier<T,E> task)
Execute the given task and get result
|
Collection<? extends Exception> |
getFailures()
Get all collected failures
|
Interpreter |
getInterpreter()
Get associated interpreter
|
boolean |
isHealthy()
Check if process of interpretation is still healthy (executed tasks didn't throw any exceptions)
|
<E extends Exception> Interpretation execute(org.panda_lang.utilities.commons.function.ThrowingRunnable<E> task)
E - exception typetask - the task to execute<T,E extends Exception> T execute(org.panda_lang.utilities.commons.function.ThrowingSupplier<T,E> task)
T - type of resultE - exception typetask - the task to executeboolean isHealthy()
Collection<? extends Exception> getFailures()
Interpreter getInterpreter()
Copyright © 2020. All rights reserved.