public class ConditionalGotoOperation extends GotoOperation
CalculateOperation class describes GOTO operation which will be realized if previous condition
returned expected result.| Constructor and Description |
|---|
ConditionalGotoOperation(String label,
boolean expectedCondition)
Create an instance of
ConditionalGotoOperation. |
| Modifier and Type | Method and Description |
|---|---|
Result |
execute(TBasicContextHolderEnv environment,
Object param)
Run operation in specified context.
|
getNameForDebug, getSourceCode, invoke, setNameForDebug, setSourceCodepublic ConditionalGotoOperation(String label, boolean expectedCondition)
ConditionalGotoOperation.label - The label to jump to.expectedCondition - expected result of previous calculation of condition(if equals then GOTO will executed
else jump to next operation will be performed).public Result execute(TBasicContextHolderEnv environment, Object param)
RuntimeOperationexecute in class GotoOperationenvironment - Environment for execution.param - Argument for execution.Copyright © 2004–2019 OpenL Tablets. All rights reserved.