Package com.google.gwt.dev.javac

Examples of com.google.gwt.dev.javac.CompilationErrorsIndexImpl


    Set<String> expectedDependencyLibraryNames = Sets.newHashSet("FooLib", "BarLib");
    oracle.add(BAR, SUPER_FOO, JdtCompilerTest.OUTER_INNER);
    rebuildCompilationState();
    List<CompilationUnit> compilationUnits =
        Lists.newArrayList(state.getCompilationUnitMap().values());
    CompilationErrorsIndexImpl expectedCompilationErrorsIndex = new CompilationErrorsIndexImpl();
    expectedCompilationErrorsIndex.add("com.google.Foo", "/project/src/com/google/Foo.java",
        Lists.newArrayList("com.google.Bang"), Lists.newArrayList("Unresolved type 'Bang'"));

    // Put data in the library and save it.
    ZipLibraryWriter zipLibraryWriter = new ZipLibraryWriter(zipFile.getPath());
    zipLibraryWriter.setLibraryName(expectedLibraryName);
View Full Code Here


    return library.getClassFileStream(classFilePath);
  }

  public CompilationErrorsIndex getCompilationErrorsIndex() {
    if (compilationErrorsIndex == null) {
      compilationErrorsIndex = new CompilationErrorsIndexImpl();
      for (Library library : libraries) {
        compilationErrorsIndex.merge(library.getCompilationErrorsIndex());
      }
    }
    return compilationErrorsIndex;
View Full Code Here

    if (compilationErrorsIndex == null) {
      compilationErrorsIndex = zipLibraryReader.readCompilationErrorsIndex();
      // There may have been no compilation error index data to read but libraries must still return
      // an empty index instead of null.
      if (compilationErrorsIndex == null) {
        compilationErrorsIndex = new CompilationErrorsIndexImpl();
      }
    }
    return compilationErrorsIndex;
  }
View Full Code Here

      this.unitCache = unitCache;
      return this;
    }

    private void initializeCompilationErrorIndexes() {
      localCompilationErrorsIndex = new CompilationErrorsIndexImpl();
      libraryCompilationErrorsIndex = libraryGroup != null
          ? libraryGroup.getCompilationErrorsIndex() : new CompilationErrorsIndexImpl();
      globalCompilationErrorsIndex = new CombinedCompilationErrorsIndex(localCompilationErrorsIndex,
          libraryCompilationErrorsIndex);
    }
View Full Code Here

        return null;
      }

      InputStream compilationErrorsIndexInputStream = getInputStream(compilationErrorsIndexEntry);

      CompilationErrorsIndexImpl newCompilationErrorsIndex;
      try {
        ObjectInputStream objectInputStream =
            new StringInterningObjectInputStream(compilationErrorsIndexInputStream);
        newCompilationErrorsIndex = (CompilationErrorsIndexImpl) objectInputStream.readObject();
        objectInputStream.close();
View Full Code Here

TOP

Related Classes of com.google.gwt.dev.javac.CompilationErrorsIndexImpl

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.