Package com.google.gwt.dev.javac.JdtCompiler

Examples of com.google.gwt.dev.javac.JdtCompiler.CompilationUnitAdapter


    for (String seedTypeName : seedTypeNames) {
      CompilationUnit unit = getUnitForType(logger, classMapBySource,
          seedTypeName);

      if (alreadyAdded.add(unit)) {
        icus.add(new CompilationUnitAdapter(unit));
      } else {
        logger.log(TreeLogger.WARN, "Duplicate compilation unit '"
            + unit.getDisplayLocation() + "'in seed types");
      }
    }

    /*
     * Add all SingleJsoImpl types that we know about. It's likely that the
     * concrete types are never explicitly referenced from the seed types.
     */
    for (JClassType intf : intfTypes) {
      String implName = oracle.getSingleJsoImpl(intf).getQualifiedSourceName();
      CompilationUnit unit = getUnitForType(logger, classMapBySource, implName);

      if (alreadyAdded.add(unit)) {
        icus.add(new CompilationUnitAdapter(unit));
        logger.log(TreeLogger.SPAM, "Forced compilation of unit '"
            + unit.getDisplayLocation()
            + "' becasue it contains a SingleJsoImpl type");
      }
    }
View Full Code Here


      }
      CompilationUnit unit = findCompilationUnit(qname);
      if (unit != null) {
        logger.log(TreeLogger.SPAM, "Found type in compilation unit: "
            + unit.getDisplayLocation());
        ICompilationUnit icu = new CompilationUnitAdapter(unit);
        return new NameEnvironmentAnswer(icu, null);
      } else {
        ClassLoader classLoader = getClassLoader();
        URL resourceURL = classLoader.getResource(className.replace('.', '/')
            + ".class");
View Full Code Here

      if (compiledClass == null) {
        logger.log(TreeLogger.ERROR,
            "Unable to find compilation unit for type '" + seedTypeName + "'");
        throw new UnableToCompleteException();
      }
      icus[i] = new CompilationUnitAdapter(compiledClass.getUnit());
    }

    // Compile, which will pull in everything else via
    // doFindAdditionalTypesUsingMagic()
    //
View Full Code Here

      }
      CompilationUnit unit = findCompilationUnit(qname);
      if (unit != null) {
        logger.log(TreeLogger.SPAM, "Found type in compilation unit: "
            + unit.getDisplayLocation());
        ICompilationUnit icu = new CompilationUnitAdapter(unit);
        NameEnvironmentAnswer out = new NameEnvironmentAnswer(icu, null);
        nameEnvironmentAnswerForTypeName.put(qname, out);
        return out;
      } else {
        ClassLoader classLoader = getClassLoader();
View Full Code Here

      if (compiledClass == null) {
        logger.log(TreeLogger.ERROR,
            "Unable to find compilation unit for type '" + seedTypeName + "'");
        throw new UnableToCompleteException();
      }
      icus[i] = new CompilationUnitAdapter(compiledClass.getUnit());
    }

    // Compile, which will pull in everything else via
    // doFindAdditionalTypesUsingMagic()
    //
View Full Code Here

      }
      CompilationUnit unit = findCompilationUnit(qname);
      if (unit != null) {
        logger.log(TreeLogger.SPAM, "Found type in compilation unit: "
            + unit.getDisplayLocation());
        ICompilationUnit icu = new CompilationUnitAdapter(unit);
        NameEnvironmentAnswer out = new NameEnvironmentAnswer(icu, null);
        nameEnvironmentAnswerForTypeName.put(qname, out);
        return out;
      } else {
        ClassLoader classLoader = getClassLoader();
View Full Code Here

TOP

Related Classes of com.google.gwt.dev.javac.JdtCompiler.CompilationUnitAdapter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.