Class OpenLEvaluationOperation
- java.lang.Object
-
- org.openl.rules.tbasic.runtime.operations.RuntimeOperation
-
- org.openl.rules.tbasic.runtime.operations.OpenLEvaluationOperation
-
- All Implemented Interfaces:
Invokable<Object,TBasicContextHolderEnv>
- Direct Known Subclasses:
CalculateOperation,PerformOperation,ReturnOperation
public abstract class OpenLEvaluationOperation extends RuntimeOperation
TheOpenLEvaluationOperationclass describes operation which has expression which must be calculated.- Author:
- User
-
-
Constructor Summary
Constructors Constructor Description OpenLEvaluationOperation(IMethodCaller openLStatement)Create an instance ofOpenLEvaluationOperation.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectevaluateStatement(TBasicContextHolderEnv environment)Calculate expression in specified context.IMethodCallergetOpenLStatement()-
Methods inherited from class org.openl.rules.tbasic.runtime.operations.RuntimeOperation
execute, getNameForDebug, getSourceCode, invoke, setNameForDebug, setSourceCode
-
-
-
-
Constructor Detail
-
OpenLEvaluationOperation
public OpenLEvaluationOperation(IMethodCaller openLStatement)
Create an instance ofOpenLEvaluationOperation.- Parameters:
openLStatement- Expression which result must be calculated.
-
-
Method Detail
-
evaluateStatement
public Object evaluateStatement(TBasicContextHolderEnv environment)
Calculate expression in specified context.- Parameters:
environment- Environment for execution.- Returns:
- The result of expression
-
getOpenLStatement
public IMethodCaller getOpenLStatement()
-
-