Esempio n. 1
0
  public boolean resolveResolutions() {
    ArrayList<Resolution> resolutions = mResolutions;
    mResolutions = new ArrayList<Resolution>();

    boolean allResolved = true;
    for (Resolution resolution : resolutions) {
      StringBuilder qualifiedClassName = new StringBuilder();
      InfoBuilder.resolveQualifiedName(
          resolution.getValue(), qualifiedClassName, resolution.getInfoBuilder());

      // if we still couldn't resolve it, save it for the next pass
      if ("".equals(qualifiedClassName.toString())) {
        mResolutions.add(resolution);
        allResolved = false;
      } else if ("thrownException".equals(resolution.getVariable())) {
        mThrownExceptions.add(InfoBuilder.Caches.obtainClass(qualifiedClassName.toString()));
      }
    }

    return allResolved;
  }