Exemplo n.º 1
0
 private static void traceReachableValues(
     LoopMonitor monitor,
     While loop,
     CtIf newIf,
     CollectableValueFinder finder,
     RuntimeValues<?> runtimeValues) {
   Multimap<String, String> getters = finder.accessibleGetters();
   Collection<String> reachableVariables = finder.reachableVariables();
   Map<String, String> inputMap = MetaMap.autoMap(reachableVariables);
   inputMap.put(loop.loopingCondition(), originalConditionName(monitor));
   RuntimeValuesInstrumenter.runtimeCollectionBefore(
       newIf, inputMap, getters, conditionName(monitor), runtimeValues);
 }
Exemplo n.º 2
0
 public static <K1, K2, V> DoubleMap<K1, K2, V> newHashDoubleMap() {
   Map<K1, Map<K2, V>> newMap = MetaMap.newHashMap();
   Factory<Map<K2, V>> factory = MetaMap.hashMapFactory();
   return new DoubleMap<K1, K2, V>(newMap, factory);
 }