Class ExecutableRuleAtom<T extends IExecutableModuleElementParameter>
java.lang.Object
org.eclipse.epsilon.erl.execute.data.RuleAtom<T>
org.eclipse.epsilon.erl.execute.data.ExecutableRuleAtom<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
Runnable
,Callable<Object>
,Supplier<Object>
,CheckedRunnable<EolRuntimeException>
,CheckedSupplier<Object,
,EolRuntimeException> CheckedEolRunnable
,CheckedEolSupplier<Object>
- Direct Known Subclasses:
EvlAtom
,GenerationRuleAtom
public class ExecutableRuleAtom<T extends IExecutableModuleElementParameter>
extends RuleAtom<T>
implements CheckedEolRunnable, Callable<Object>, CheckedEolSupplier<Object>
Standalone
RuleAtom
which can be submitted to an ExecutorService.
This has all necessary information for executing the RuleAtom, and avoids
the need for creating a separate anonymous inner class or lambda.- Since:
- 1.6
- Author:
- Sina Madani
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ExecutableRuleAtom
(T construct, Object modelElement) ExecutableRuleAtom
(T construct, Object modelElement, IErlContext context) -
Method Summary
Methods inherited from class org.eclipse.epsilon.erl.execute.data.RuleAtom
asEntry, equals, execute, hashCode, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.epsilon.eol.function.CheckedEolRunnable
run
Methods inherited from interface org.eclipse.epsilon.eol.function.CheckedEolSupplier
get
-
Field Details
-
context
-
-
Constructor Details
-
ExecutableRuleAtom
-
ExecutableRuleAtom
-
-
Method Details
-
execute
- Throws:
EolRuntimeException
-
call
- Specified by:
call
in interfaceCallable<T extends IExecutableModuleElementParameter>
- Throws:
Exception
-
runThrows
- Specified by:
runThrows
in interfaceCheckedEolRunnable
- Specified by:
runThrows
in interfaceCheckedRunnable<T extends IExecutableModuleElementParameter>
- Throws:
EolRuntimeException
-
getThrows
- Specified by:
getThrows
in interfaceCheckedEolSupplier<T extends IExecutableModuleElementParameter>
- Specified by:
getThrows
in interfaceCheckedSupplier<Object,
EolRuntimeException> - Throws:
EolRuntimeException
-