Class OperationsAnalyzer


  • @Component
    public class OperationsAnalyzer
    extends java.lang.Object
    Author:
    Elias Ricken de Medeiros
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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
      int findBusinessDataDependencyIndex​(java.lang.String businessDataName, int fromIndex, java.util.List<SOperation> operations)
      Finds the index of operation of type SLeftOperand.TYPE_BUSINESS_DATA that references the expression of type ExpressionType.TYPE_BUSINESS_DATA with given name directly on the right operand or in transitive dependencies.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OperationsAnalyzer

        public OperationsAnalyzer()
    • Method Detail

      • findBusinessDataDependencyIndex

        public int findBusinessDataDependencyIndex​(java.lang.String businessDataName,
                                                   int fromIndex,
                                                   java.util.List<SOperation> operations)
        Finds the index of operation of type SLeftOperand.TYPE_BUSINESS_DATA that references the expression of type ExpressionType.TYPE_BUSINESS_DATA with given name directly on the right operand or in transitive dependencies.
        Parameters:
        businessDataName - the expression content
        fromIndex - index of operation from which the analyse must begins
        operations - 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 operation
        operations - all operations
        Returns:
        the next and the last indexes where the left operand located at the given index is used