Esempio n. 1
0
  public void defaultTraverse(final BinItemVisitor visitor) {
    ProgressListener listener =
        (ProgressListener) CFlowContext.get(ProgressListener.class.getName());

    List loadedSources = getCompilationUnits();

    for (int i = 0, max = loadedSources.size(); i < max; i++) {
      visitor.visit((CompilationUnit) loadedSources.get(i));

      if (listener != null) {
        ProgressMonitor.Progress progress = AbstractIndexer.getProgress();
        if (progress != null) {
          listener.progressHappened(progress.getPercentage(i, loadedSources.size()));
        }
      }
    }
  }
Esempio n. 2
0
 public void accept(final BinItemVisitor visitor) {
   visitor.visit(this);
 }
 public void visit(BinMethodInvocationExpression expr) {
   METHODS.add(expr.getMethod().getName());
   //    System.out.println(expr.getMethod().getName());
   RETTYPES.add(expr.getReturnType().getName());
   super.visit(expr);
 }