/** * */ public ParanoidHashSet() { super(); hcFreq = HashMapFactory.make(); }
/** * */ public ParanoidHashSet() { super(); hcFreq = HashMapFactory.make(); }
@Override public synchronized void wipe() { dictionary = HashMapFactory.make(); nItems = 0; }
/** * */ public ParanoidHashSet() { super(); hcFreq = HashMapFactory.make(); }
@Override public synchronized void wipe() { dictionary = HashMapFactory.make(); nItems = 0; }
public ParanoidHashSet(int size) { super(size); hcFreq = HashMapFactory.make(size); }
public ParanoidHashSet(int size) { super(size); hcFreq = HashMapFactory.make(size); }
public ParanoidHashSet(int size) { super(size); hcFreq = HashMapFactory.make(size); }
public void addConstant(Integer vn, ConstantValue value) { if (constantValues == null) constantValues = HashMapFactory.make(5); constantValues.put(vn, value); }
private static Map<ContextKey, InstanceKey> makeMap(InstanceKey[] x) { Map<ContextKey, InstanceKey> result = HashMapFactory.make(); for(int i = 0; i < x.length; i++) { if (x[i] != null) { result.put(ContextKey.PARAMETERS[i], x[i]); } } return result; }
public void addConstant(Integer vn, ConstantValue value) { if (constantValues == null) constantValues = HashMapFactory.make(5); constantValues.put(vn, value); }
private static Map<ContextKey, InstanceKey> makeMap(InstanceKey[] x) { Map<ContextKey, InstanceKey> result = HashMapFactory.make(); for(int i = 0; i < x.length; i++) { if (x[i] != null) { result.put(ContextKey.PARAMETERS[i], x[i]); } } return result; }
private void mapInstructions2Blocks() { instruction2Block = HashMapFactory.make(); for (ISSABasicBlock b : cfg) { for (SSAInstruction s : b) { instruction2Block.put(s, b); } } }
private void mapInstructions2Blocks() { instruction2Block = HashMapFactory.make(); for (ISSABasicBlock b : cfg) { for (SSAInstruction s : b) { instruction2Block.put(s, b); } } }
/** * Collect analysis result for each {@link CGNode} in a {@link Map}. */ public static <T> Map<CGNode, Collection<T>> collectNodeResults(CallGraph cg, Function<CGNode, Collection<T>> nodeResultComputer) { Map<CGNode, Collection<T>> result = HashMapFactory.make(); for (CGNode n : cg) { result.put(n, nodeResultComputer.apply(n)); } return result; } }
/** * Collect analysis result for each {@link CGNode} in a {@link Map}. */ public static <T> Map<CGNode, Collection<T>> collectNodeResults(CallGraph cg, Function<CGNode, Collection<T>> nodeResultComputer) { Map<CGNode, Collection<T>> result = HashMapFactory.make(); for (CGNode n : cg) { result.put(n, nodeResultComputer.apply(n)); } return result; } }
public XMLSummaryWriter() throws ParserConfigurationException { DocumentBuilderFactory docFactory = DocumentBuilderFactory .newInstance(); DocumentBuilder docBuilder = docFactory.newDocumentBuilder(); doc = docBuilder.newDocument(); rootElement = doc.createElement(E_SUMMARY_SPEC); doc.appendChild(rootElement); classElts = HashMapFactory.make(); }
public static ClassHierarchy make(AnalysisScope scope, ClassLoaderFactory factory) throws ClassHierarchyException { if (scope == null) { throw new IllegalArgumentException("null scope"); } if (factory == null) { throw new IllegalArgumentException("null factory"); } return new ClassHierarchy(scope, factory, null, HashMapFactory.make(), ClassHierarchy.MissingSuperClassHandling.NONE); }
/** * temporarily marking this internal to avoid infinite sleep with randomly chosen IProgressMonitor. TODO: nanny for testgen */ public static ClassHierarchy make(AnalysisScope scope, ClassLoaderFactory factory, Language language, IProgressMonitor monitor) throws ClassHierarchyException { if (factory == null) { throw new IllegalArgumentException("null factory"); } return new ClassHierarchy(scope, factory, language, monitor, HashMapFactory.make(), ClassHierarchy.MissingSuperClassHandling.NONE); }
private static <T> Map<T, Integer> makeMap(NumberedGraph<T> G, int[] colors) { Map<T,Integer> colorMap = HashMapFactory.make(); for(int i = 0; i < colors.length; i++) { if (colors[i] != -1) { colorMap.put(G.getNode(i), colors[i]); } } return colorMap; }