Package org.eclipse.epsilon.eol.dom
Class Operation
java.lang.Object
org.eclipse.epsilon.common.module.AbstractModuleElement
org.eclipse.epsilon.eol.dom.AnnotatableModuleElement
org.eclipse.epsilon.eol.dom.Operation
- All Implemented Interfaces:
ModuleElement
- Direct Known Subclasses:
TemplateOperation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StatementBlock
protected EolType
protected TypeExpression
protected boolean
protected NameExpression
protected EolType
protected TypeExpression
Fields inherited from class org.eclipse.epsilon.eol.dom.AnnotatableModuleElement
annotationBlock
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(IEolVisitor visitor) void
protected void
checkResultType
(Object result, IEolContext context) void
protected void
evaluatePostConditions
(IEolContext context, Object result) protected void
evaluatePreConditions
(IEolContext context) execute
(Object self, List<?> parameterValues, IEolContext context) execute
(Object self, List<?> parameterValues, IEolContext context, boolean inNewStackFrame) protected Object
executeBody
(IEolContext context) getBody()
getContextType
(IEolContext context) getName()
getReturnType
(IEolContext context) boolean
isCached()
void
setBody
(StatementBlock body) void
setContextTypeExpression
(TypeExpression contextTypeExpression) void
setNameExpression
(NameExpression nameExpression) void
setReturnTypeExpression
(TypeExpression returnTypeExpression) toString()
Methods inherited from class org.eclipse.epsilon.eol.dom.AnnotatableModuleElement
getAnnotation, getAnnotationBlock, getAnnotations, getAnnotationsValues, getBooleanAnnotationValue, getBooleanAnnotationValue, getBooleanAnnotationValue, getBooleanAnnotationValue, hasAnnotation, setAnnotationBlock
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
-
Field Details
-
nameExpression
-
contextTypeExpression
-
returnTypeExpression
-
contextType
-
returnType
-
body
-
formalParameters
-
isCached
protected boolean isCached -
cache
-
-
Constructor Details
-
Operation
public Operation()
-
-
Method Details
-
build
- Specified by:
build
in interfaceModuleElement
- Overrides:
build
in classAnnotatableModuleElement
-
clearCache
public void clearCache() -
toString
- Overrides:
toString
in classAbstractModuleElement
-
isCached
public boolean isCached() -
execute
public Object execute(Object self, List<?> parameterValues, IEolContext context) throws EolRuntimeException - Throws:
EolRuntimeException
-
execute
public Object execute(Object self, List<?> parameterValues, IEolContext context, boolean inNewStackFrame) throws EolRuntimeException - Throws:
EolRuntimeException
-
executeBody
- Throws:
EolRuntimeException
-
evaluatePreConditions
- Throws:
EolRuntimeException
-
checkResultType
- Throws:
EolRuntimeException
-
evaluatePostConditions
protected void evaluatePostConditions(IEolContext context, Object result) throws EolRuntimeException - Throws:
EolRuntimeException
-
getReturnType
- Throws:
EolRuntimeException
-
getContextType
- Throws:
EolRuntimeException
-
getName
-
getFormalParameters
-
getBody
-
setBody
-
getNameExpression
-
setNameExpression
-
getContextTypeExpression
-
setContextTypeExpression
-
getReturnTypeExpression
-
setReturnTypeExpression
-
accept
- Overrides:
accept
in classAnnotatableModuleElement
-