Esempio n. 1
0
 /**
  * Collect dependencies in the enclosing class
  *
  * @param from The enclosing class sym
  * @param to The enclosing classes references this sym.
  */
 @Override
 public void reportDependence(Symbol from, Symbol to) {
   // Capture dependencies between the packages.
   deps.reportPackageDep(from.packge().fullname, to.packge().fullname);
   // It would be convenient to check if to.outermost comes from source or classpath
   // and only report it, if its from the classpath. This would reduce the amount
   // of data sent over the wire to the sjavac client. Can this be done? All interesting
   // classes are private within javac/file or javac/jvm....
   deps.reportClassDep(to.outermostClass());
 }
 /**
  * Collect dependencies in the enclosing class
  *
  * @param from The enclosing class sym
  * @param to The enclosing classes references this sym.
  */
 @Override
 public void reportDependence(Symbol from, Symbol to) {
   // Capture dependencies between the packages.
   deps.collect(from.packge().fullname, to.packge().fullname);
 }