Class OperationsAnalyzer
- java.lang.Object
-
- org.bonitasoft.engine.core.operation.impl.OperationsAnalyzer
-
@Component public class OperationsAnalyzer extends java.lang.Object- Author:
- Elias Ricken de Medeiros
-
-
Constructor Summary
Constructors Constructor Description OperationsAnalyzer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LeftOperandIndexescalculateIndexes(int indexOfCurrentOperation, java.util.List<SOperation> operations)Calculates the next and the last indexes where the left operand located at the given index is usedintfindBusinessDataDependencyIndex(java.lang.String businessDataName, int fromIndex, java.util.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.
-
-
-
Method Detail
-
findBusinessDataDependencyIndex
public int findBusinessDataDependencyIndex(java.lang.String businessDataName, int fromIndex, java.util.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, java.util.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
-
-