Class ConditionalGotoOperation
- java.lang.Object
-
- org.openl.rules.tbasic.runtime.operations.RuntimeOperation
-
- org.openl.rules.tbasic.runtime.operations.GotoOperation
-
- org.openl.rules.tbasic.runtime.operations.ConditionalGotoOperation
-
- All Implemented Interfaces:
Invokable<Object,TBasicContextHolderEnv>
public class ConditionalGotoOperation extends GotoOperation
TheCalculateOperationclass describes GOTO operation which will be realized if previous condition returned expected result.- Author:
- User
-
-
Constructor Summary
Constructors Constructor Description ConditionalGotoOperation(String label, boolean expectedCondition)Create an instance ofConditionalGotoOperation.
-
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.RuntimeOperation
getNameForDebug, getSourceCode, invoke, setNameForDebug, setSourceCode
-
-
-
-
Constructor Detail
-
ConditionalGotoOperation
public ConditionalGotoOperation(String label, boolean expectedCondition)
Create an instance ofConditionalGotoOperation.- Parameters:
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).
-
-
Method Detail
-
execute
public Result execute(TBasicContextHolderEnv environment, Object param)
Description copied from class:RuntimeOperationRun operation in specified context.- Overrides:
executein classGotoOperation- Parameters:
environment- Environment for execution.param- Argument for execution.- Returns:
- The result of operation
-
-