コード例 #1
0
 public SourceIncludes read(Decoder decoder) throws Exception {
   SourceIncludes sourceIncludes = new DefaultSourceIncludes();
   sourceIncludes.getQuotedIncludes().addAll(stringListSerializer.read(decoder));
   sourceIncludes.getSystemIncludes().addAll(stringListSerializer.read(decoder));
   sourceIncludes.getMacroIncludes().addAll(stringListSerializer.read(decoder));
   return sourceIncludes;
 }
コード例 #2
0
  public CompilationState read(Decoder decoder) throws Exception {
    CompilationState compilationState = new CompilationState();
    int version = decoder.readInt();
    if (version != SERIAL_VERSION) {
      return compilationState;
    }

    compilationState.sourceInputs.addAll(fileListSerializer.read(decoder));
    compilationState.fileStates.putAll(stateMapSerializer.read(decoder));
    return compilationState;
  }