示例#1
0
 private ClassDependency createClassDependency(String className) {
   ClassReader cls = classSource.get(className);
   ClassDependency dependency = new ClassDependency(this, className, cls);
   if (!dependency.isMissing()) {
     if (cls.getParent() != null && !cls.getParent().equals(className)) {
       linkClass(cls.getParent(), null);
     }
     for (String ifaceName : cls.getInterfaces()) {
       linkClass(ifaceName, null);
     }
   }
   return dependency;
 }
示例#2
0
 private boolean addClassAccess(
     DefaultCallGraphNode node, String className, InstructionLocation loc) {
   if (!node.addClassAccess(className, loc)) {
     return false;
   }
   ClassReader cls = classSource.get(className);
   if (cls != null) {
     if (cls.getParent() != null && !cls.getParent().equals(cls.getName())) {
       addClassAccess(node, cls.getParent(), loc);
     }
     for (String iface : cls.getInterfaces()) {
       addClassAccess(node, iface, loc);
     }
   }
   return true;
 }