Class ReturnOperation<ResultValueType>
- java.lang.Object
-
- org.openl.rules.tbasic.runtime.operations.RuntimeOperation
-
- org.openl.rules.tbasic.runtime.operations.OpenLEvaluationOperation
-
- org.openl.rules.tbasic.runtime.operations.ReturnOperation<ResultValueType>
-
- All Implemented Interfaces:
Invokable<Object,TBasicContextHolderEnv>
public class ReturnOperation<ResultValueType> extends OpenLEvaluationOperation
TheReturnOperationclass describes operation which finalizes execution of some function or subroutine and returns some value if necessary.- Author:
- User
-
-
Constructor Summary
Constructors Constructor Description ReturnOperation(IMethodCaller openLStatement)Create an instance ofReturnOperation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Resultexecute(TBasicContextHolderEnv environment, Object param)Run operation in specified context.-
Methods inherited from class org.openl.rules.tbasic.runtime.operations.OpenLEvaluationOperation
evaluateStatement, getOpenLStatement
-
Methods inherited from class org.openl.rules.tbasic.runtime.operations.RuntimeOperation
getNameForDebug, getSourceCode, invoke, setNameForDebug, setSourceCode
-
-
-
-
Constructor Detail
-
ReturnOperation
public ReturnOperation(IMethodCaller openLStatement)
Create an instance ofReturnOperation.- Parameters:
openLStatement- Expression which result must be calculated and returned. If openLStatement is blank then operation just end execution of some function.
-
-
Method Detail
-
execute
public Result execute(TBasicContextHolderEnv environment, Object param)
Description copied from class:RuntimeOperationRun operation in specified context.- Specified by:
executein classRuntimeOperation- Parameters:
environment- Environment for execution.param- Argument for execution.- Returns:
- The result of operation
-
-