public class ReturnOperation<ResultValueType> extends OpenLEvaluationOperation
ReturnOperation class describes operation which finalizes execution of some function or subroutine
and returns some value if necessary.| Constructor and Description |
|---|
ReturnOperation(IMethodCaller openLStatement)
Create an instance of
ReturnOperation. |
| Modifier and Type | Method and Description |
|---|---|
Result |
execute(TBasicContextHolderEnv environment,
Object param)
Run operation in specified context.
|
evaluateStatement, getOpenLStatementgetNameForDebug, getSourceCode, invoke, setNameForDebug, setSourceCodepublic ReturnOperation(IMethodCaller openLStatement)
ReturnOperation.openLStatement - Expression which result must be calculated and returned. If openLStatement is blank then
operation just end execution of some function.public Result execute(TBasicContextHolderEnv environment, Object param)
RuntimeOperationexecute in class RuntimeOperationenvironment - Environment for execution.param - Argument for execution.Copyright © 2004–2019 OpenL Tablets. All rights reserved.