Package org.openl.rules.dt.element
Class Action
- java.lang.Object
-
- org.openl.rules.dt.element.FunctionalRow
-
- org.openl.rules.dt.element.Action
-
- All Implemented Interfaces:
IAction,IDecisionRow,IBaseAction,IBaseDecisionRow
public class Action extends FunctionalRow implements IAction
-
-
Field Summary
-
Fields inherited from class org.openl.rules.dt.element.FunctionalRow
expr, method, paramInitialized, params, paramsUniqueNames, ruleExecutionType, storage
-
Fields inherited from interface org.openl.rules.dt.IBaseAction
EMPTY
-
-
Constructor Summary
Constructors Constructor Description Action(String name, int row, ILogicalTable decisionTable, ActionType actionType, DTScale.RowScale scale, DecisionTable decisionTableInvocableMethod)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectexecuteAction(int ruleN, Object target, Object[] params, IRuntimeEnv env)protected IOpenSourceCodeModulegetExpressionSource(TableSyntaxNode tableSyntaxNode, IMethodSignature signature, IOpenClass methodType, IOpenClass declaringClass, OpenL openl, IBindingContext bindingContext)IOpenClassgetType()booleanisAction()booleanisCollectReturnAction()booleanisCollectReturnKeyAction()booleanisCondition()booleanisReturnAction()voidprepareAction(DecisionTable decisionTable, IOpenMethodHeader header, IMethodSignature signature, OpenL openl, IBindingContext bindingContext, RuleRow ruleRow, IOpenClass ruleExecutionType, TableSyntaxNode tableSyntaxNode)protected voidprepareParams(IOpenClass declaringClass, IMethodSignature signature, IOpenClass methodType, IOpenSourceCodeModule methodSource, OpenL openl, IBindingContext bindingContext)-
Methods inherited from class org.openl.rules.dt.element.FunctionalRow
clearExprs, clearParamValues, getCodeTable, getDecisionTable, getExpr, getExprValue, getInfoTable, getMethod, getName, getNumberOfParams, getNumberOfRules, getParamPresentation, getParams, getParamsTable, getParamValue, getSourceCodeModule, getStorage, getStorageValue, getValueCell, hasDeclaredParams, hasFormula, hasFormulas, isEmpty, isEqual, loadValue, loadValues, nValues, prepare, prepareParams, removeDebugInformation, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.openl.rules.dt.element.IAction
getStorage
-
Methods inherited from interface org.openl.rules.dt.IBaseDecisionRow
getDecisionTable, getExprValue, getMethod, getName, getNumberOfParams, getNumberOfRules, getParams, getValueCell, isEmpty, removeDebugInformation
-
Methods inherited from interface org.openl.rules.dt.element.IDecisionRow
clearExprs, clearParamValues, getExpr, getInfoTable, getParamPresentation, getParamValue, getSourceCodeModule, hasDeclaredParams, hasFormula, hasFormulas, isEqual, loadValue, loadValues, prepare, prepareParams
-
-
-
-
Constructor Detail
-
Action
public Action(String name, int row, ILogicalTable decisionTable, ActionType actionType, DTScale.RowScale scale, DecisionTable decisionTableInvocableMethod)
-
-
Method Detail
-
isAction
public boolean isAction()
- Specified by:
isActionin interfaceIDecisionRow
-
isCondition
public boolean isCondition()
- Specified by:
isConditionin interfaceIDecisionRow
-
isReturnAction
public boolean isReturnAction()
- Specified by:
isReturnActionin interfaceIBaseAction
-
isCollectReturnKeyAction
public boolean isCollectReturnKeyAction()
- Specified by:
isCollectReturnKeyActionin interfaceIBaseAction
-
isCollectReturnAction
public boolean isCollectReturnAction()
- Specified by:
isCollectReturnActionin interfaceIBaseAction
-
executeAction
public Object executeAction(int ruleN, Object target, Object[] params, IRuntimeEnv env)
- Specified by:
executeActionin interfaceIBaseAction
-
prepareAction
public void prepareAction(DecisionTable decisionTable, IOpenMethodHeader header, IMethodSignature signature, OpenL openl, IBindingContext bindingContext, RuleRow ruleRow, IOpenClass ruleExecutionType, TableSyntaxNode tableSyntaxNode) throws Exception
- Specified by:
prepareActionin interfaceIAction- Throws:
Exception
-
getType
public IOpenClass getType()
- Specified by:
getTypein interfaceIBaseAction
-
prepareParams
protected void prepareParams(IOpenClass declaringClass, IMethodSignature signature, IOpenClass methodType, IOpenSourceCodeModule methodSource, OpenL openl, IBindingContext bindingContext) throws Exception
- Overrides:
prepareParamsin classFunctionalRow- Throws:
Exception
-
getExpressionSource
protected IOpenSourceCodeModule getExpressionSource(TableSyntaxNode tableSyntaxNode, IMethodSignature signature, IOpenClass methodType, IOpenClass declaringClass, OpenL openl, IBindingContext bindingContext) throws Exception
- Overrides:
getExpressionSourcein classFunctionalRow- Throws:
Exception
-
-