/** * Returns the set of class names (with dots) of those classes * such that there is a at least one edge and the class is the source of * the edge. * * @return */ public Set<String> getSourceClasses() { Set<String> sourceClasses = new LinkedHashSet<String>(); for (StaticFieldReadEntry entry : staticFieldReads) { sourceClasses.add(entry.getSourceClass().replace('/', '.')); } for (StaticMethodCallEntry entry : staticMethodCalls) { sourceClasses.add(entry.getSourceClass().replace('/', '.')); } return sourceClasses; }
@Override public String toString() { return getSourceClass() + "." + getSourceMethod() + " -> " + getTargetClass() + "." + targetField; } }