private LoopStatement createMapForLoopStatement(String keyName, String valueName, String collectionExpression, Accumulator dependencyAccumulator) { executableValidator.validateLoopStatementVariable(keyName); executableValidator.validateLoopStatementVariable(valueName); return new MapLoopStatement( keyName, valueName, collectionExpression, dependencyAccumulator.getFunctionDependencies(), dependencyAccumulator.getSystemPropertyDependencies()); }
String keyName = mapLoopStatement.getKeyName(); String valueName = mapLoopStatement.getValueName(); loopsBinding.incrementMapForLoop(keyName, valueName, flowContext, forLoopCondition);
String keyName = mapLoopStatement.getKeyName(); String valueName = mapLoopStatement.getValueName(); loopsBinding.incrementMapForLoop(keyName, valueName, flowContext, forLoopCondition);
branchContext.putVariable(((ListLoopStatement) parallelLoopStatement).getVarName(), splitItem); } else if (parallelLoopStatement instanceof MapLoopStatement) { branchContext.putVariable(((MapLoopStatement) parallelLoopStatement).getKeyName(), (Value) ((ImmutablePair) splitItem.get()).getLeft()); branchContext.putVariable(((MapLoopStatement) parallelLoopStatement).getValueName(), (Value) ((ImmutablePair) splitItem.get()).getRight());
private LoopStatement createMapForLoopStatement(String keyName, String valueName, String collectionExpression, Accumulator dependencyAccumulator) { executableValidator.validateLoopStatementVariable(keyName); executableValidator.validateLoopStatementVariable(valueName); return new MapLoopStatement( keyName, valueName, collectionExpression, dependencyAccumulator.getFunctionDependencies(), dependencyAccumulator.getSystemPropertyDependencies()); }
branchContext.putVariable(((ListLoopStatement) parallelLoopStatement).getVarName(), splitItem); } else if (parallelLoopStatement instanceof MapLoopStatement) { branchContext.putVariable(((MapLoopStatement) parallelLoopStatement).getKeyName(), (Value) ((ImmutablePair) splitItem.get()).getLeft()); branchContext.putVariable(((MapLoopStatement) parallelLoopStatement).getValueName(), (Value) ((ImmutablePair) splitItem.get()).getRight());