Package org.eclipse.epsilon.eol.dom
Class ExecutableBlock<T>
java.lang.Object
org.eclipse.epsilon.common.module.AbstractModuleElement
org.eclipse.epsilon.eol.dom.AbstractExecutableModuleElement
org.eclipse.epsilon.eol.dom.ExecutableBlock<T>
- All Implemented Interfaces:
ModuleElement
,IExecutableModuleElement
- Direct Known Subclasses:
Domain
-
Field Summary
Modifier and TypeFieldDescriptionprotected IExecutableModuleElement
protected String
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(IEolVisitor visitor) void
execute
(IEolContext context) execute
(IEolContext context, boolean inNewFrame, FrameType frameType, Variable... variables) execute
(IEolContext context, boolean inNewFrame, Variable... variables) execute
(IEolContext context, Variable... variables) protected Object
executeBlockOrExpressionAst
(IExecutableModuleElement ast, IEolContext context) executeBody
(IEolContext context) getBody()
getRole()
getText()
protected void
Any chores to be done after executionvoid
void
void
Methods inherited from class org.eclipse.epsilon.common.module.AbstractModuleElement
equals, getChildren, getComments, getData, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, hashCode, setModule, setParent, setRegion, setUri, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.epsilon.common.module.ModuleElement
getChildren, getComments, getData, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUri
-
Field Details
-
body
-
expectedResultClass
-
role
-
text
-
-
Constructor Details
-
ExecutableBlock
-
-
Method Details
-
build
- Specified by:
build
in interfaceModuleElement
- Overrides:
build
in classAbstractModuleElement
-
getText
-
setText
-
getBody
-
setBody
-
getRole
-
setRole
-
execute
- Throws:
EolRuntimeException
-
execute
- Throws:
EolRuntimeException
-
executeBlockOrExpressionAst
protected Object executeBlockOrExpressionAst(IExecutableModuleElement ast, IEolContext context) throws EolRuntimeException - Throws:
EolRuntimeException
-
execute
public T execute(IEolContext context, boolean inNewFrame, FrameType frameType, Variable... variables) throws EolRuntimeException - Throws:
EolRuntimeException
-
postExecution
protected void postExecution()Any chores to be done after execution -
executeBody
- Parameters:
context
-- Returns:
- Throws:
EolRuntimeException
-
execute
public T execute(IEolContext context, boolean inNewFrame, Variable... variables) throws EolRuntimeException - Throws:
EolRuntimeException
-
getExpectedResultClass
-
accept
-