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
ConstructorsModifierConstructorDescriptionprotectedExecutableRuleAtom(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, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.epsilon.eol.function.CheckedEolRunnable
runMethods 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:
callin interfaceCallable<T extends IExecutableModuleElementParameter>- Throws:
Exception
-
runThrows
- Specified by:
runThrowsin interfaceCheckedEolRunnable- Specified by:
runThrowsin interfaceCheckedRunnable<T extends IExecutableModuleElementParameter>- Throws:
EolRuntimeException
-
getThrows
- Specified by:
getThrowsin interfaceCheckedEolSupplier<T extends IExecutableModuleElementParameter>- Specified by:
getThrowsin interfaceCheckedSupplier<Object,EolRuntimeException> - Throws:
EolRuntimeException
-