Class RuntimeOperation
- java.lang.Object
-
- org.openl.rules.tbasic.runtime.operations.RuntimeOperation
-
- All Implemented Interfaces:
Invokable<Object,TBasicContextHolderEnv>
- Direct Known Subclasses:
AssignValueOperation,AssignVariableOperation,DeclareIteratorOperation,GotoOperation,IteratorHasNextOperation,IteratorNextOperation,NopOperation,OpenLEvaluationOperation
public abstract class RuntimeOperation extends Object implements Invokable<Object,TBasicContextHolderEnv>
TheRuntimeOperationclass describes operation in common. Contains link to source of this operation and can be executed with debug mode.
-
-
Constructor Summary
Constructors Constructor Description RuntimeOperation()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Resultexecute(TBasicContextHolderEnv environment, Object param)Run operation in specified context.StringgetNameForDebug()AlgorithmOperationSourcegetSourceCode()Resultinvoke(Object target, Object[] params, TBasicContextHolderEnv env)voidsetNameForDebug(String nameForDebug)voidsetSourceCode(AlgorithmOperationSource sourceCode)
-
-
-
Method Detail
-
execute
public abstract Result execute(TBasicContextHolderEnv environment, Object param)
Run operation in specified context.- Parameters:
environment- Environment for execution.param- Argument for execution.- Returns:
- The result of operation
-
getNameForDebug
public String getNameForDebug()
- Returns:
- the nameForDebug
-
getSourceCode
public AlgorithmOperationSource getSourceCode()
- Returns:
- the source code
-
setNameForDebug
public void setNameForDebug(String nameForDebug)
- Parameters:
nameForDebug- the nameForDebug to set
-
setSourceCode
public void setSourceCode(AlgorithmOperationSource sourceCode)
-
invoke
public Result invoke(Object target, Object[] params, TBasicContextHolderEnv env)
- Specified by:
invokein interfaceInvokable<Object,TBasicContextHolderEnv>
-
-