Class OperationsAnalyzer
java.lang.Object
org.bonitasoft.engine.core.operation.impl.OperationsAnalyzer
- Author:
- Elias Ricken de Medeiros
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncalculateIndexes(int indexOfCurrentOperation, List<SOperation> operations) Calculates the next and the last indexes where the left operand located at the given index is usedintfindBusinessDataDependencyIndex(String businessDataName, int fromIndex, List<SOperation> operations) Finds the index of operation of typeSLeftOperand.TYPE_BUSINESS_DATAthat references the expression of typeExpressionType.TYPE_BUSINESS_DATAwith given name directly on the right operand or in transitive dependencies.
-
Constructor Details
-
OperationsAnalyzer
public OperationsAnalyzer()
-
-
Method Details
-
findBusinessDataDependencyIndex
public int findBusinessDataDependencyIndex(String businessDataName, int fromIndex, List<SOperation> operations) Finds the index of operation of typeSLeftOperand.TYPE_BUSINESS_DATAthat references the expression of typeExpressionType.TYPE_BUSINESS_DATAwith given name directly on the right operand or in transitive dependencies.- Parameters:
businessDataName- the expression contentfromIndex- index of operation from which the analyse must beginsoperations- list of operations @return the index of operation that references the expression with given name and type.
-
calculateIndexes
public LeftOperandIndexes calculateIndexes(int indexOfCurrentOperation, List<SOperation> operations) Calculates the next and the last indexes where the left operand located at the given index is used- Parameters:
indexOfCurrentOperation- index of current operationoperations- all operations- Returns:
- the next and the last indexes where the left operand located at the given index is used
-