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 StatementBlockprotected EolTypeprotected TypeExpressionprotected booleanprotected NameExpressionprotected EolTypeprotected TypeExpressionFields inherited from class org.eclipse.epsilon.eol.dom.AnnotatableModuleElement
annotationBlock -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(IEolVisitor visitor) voidprotected voidcheckResultType(Object result, IEolContext context) voidprotected voidevaluatePostConditions(IEolContext context, Object result) protected voidevaluatePreConditions(IEolContext context) execute(Object self, List<?> parameterValues, IEolContext context) execute(Object self, List<?> parameterValues, IEolContext context, boolean inNewStackFrame) protected ObjectexecuteBody(IEolContext context) getBody()getContextType(IEolContext context) getName()getReturnType(IEolContext context) booleanisCached()voidsetBody(StatementBlock body) voidsetContextTypeExpression(TypeExpression contextTypeExpression) voidsetNameExpression(NameExpression nameExpression) voidsetReturnTypeExpression(TypeExpression returnTypeExpression) toString()Methods inherited from class org.eclipse.epsilon.eol.dom.AnnotatableModuleElement
getAnnotation, getAnnotationBlock, getAnnotations, getAnnotationsValues, getBooleanAnnotationValue, getBooleanAnnotationValue, getBooleanAnnotationValue, getBooleanAnnotationValue, hasAnnotation, setAnnotationBlockMethods 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:
buildin interfaceModuleElement- Overrides:
buildin classAnnotatableModuleElement
-
clearCache
public void clearCache() -
toString
- Overrides:
toStringin 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:
acceptin classAnnotatableModuleElement
-