private Map<IPatternDetector, Map<IClass, Set<IClass>>> getPatternInformation() { // Need to get the pattern information // It is a map of pattern detectors to a list of the pattern sets... Map<IPatternDetector, Map<IClass, Set<IClass>>> detectors = new HashMap<>(); IPatternDetector detector = ClassParser.getInstance().getDetector(); while (detector != null) { detectors.put(detector, detector.getKeyMap()); detector = detector.getDecorated(); } return detectors; }
private void initializeCheckBoxPatternArrays() { for (IPatternDetector p : this.patternInformation.keySet()) { if (this.patternInformation.get(p).isEmpty()) { continue; } CheckBoxNode node = new CheckBoxNode(p.getPatternName(), this, false); for (IClass patternName : this.patternInformation.get(p).keySet()) { CheckBoxNode t = new CheckBoxNode( patternName.getClassName(), patternInformation.get(p).get(patternName), this, false); node.add(t); } this.root.add(node); } }