| /* |
| * Copyright 2016 The Bazel Authors. All rights reserved. |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| package com.google.idea.blaze.base.model; |
| |
| import com.google.common.collect.ImmutableMap; |
| import com.google.common.collect.ImmutableMultimap; |
| import com.google.idea.blaze.base.ideinfo.TargetKey; |
| import com.google.idea.blaze.base.ideinfo.TargetMap; |
| import com.google.idea.blaze.base.sync.projectview.WorkspaceLanguageSettings; |
| import com.google.idea.blaze.base.sync.workspace.ArtifactLocationDecoder; |
| import com.google.idea.blaze.base.sync.workspace.BlazeRoots; |
| import com.google.idea.blaze.base.sync.workspace.WorkspacePathResolver; |
| import java.io.Serializable; |
| import javax.annotation.concurrent.Immutable; |
| |
| /** The top-level object serialized to cache. */ |
| @Immutable |
| public class BlazeProjectData implements Serializable { |
| private static final long serialVersionUID = 27L; |
| |
| public final long syncTime; |
| public final TargetMap targetMap; |
| public final ImmutableMap<String, String> blazeInfo; |
| public final BlazeRoots blazeRoots; |
| public final BlazeVersionData blazeVersionData; |
| public final WorkspacePathResolver workspacePathResolver; |
| public final ArtifactLocationDecoder artifactLocationDecoder; |
| public final WorkspaceLanguageSettings workspaceLanguageSettings; |
| public final SyncState syncState; |
| public final ImmutableMultimap<TargetKey, TargetKey> reverseDependencies; |
| |
| public BlazeProjectData( |
| long syncTime, |
| TargetMap targetMap, |
| ImmutableMap<String, String> blazeInfo, |
| BlazeRoots blazeRoots, |
| BlazeVersionData blazeVersionData, |
| WorkspacePathResolver workspacePathResolver, |
| ArtifactLocationDecoder artifactLocationDecoder, |
| WorkspaceLanguageSettings workspaceLanguageSettings, |
| SyncState syncState, |
| ImmutableMultimap<TargetKey, TargetKey> reverseDependencies) { |
| this.syncTime = syncTime; |
| this.targetMap = targetMap; |
| this.blazeInfo = blazeInfo; |
| this.blazeRoots = blazeRoots; |
| this.blazeVersionData = blazeVersionData; |
| this.workspacePathResolver = workspacePathResolver; |
| this.artifactLocationDecoder = artifactLocationDecoder; |
| this.workspaceLanguageSettings = workspaceLanguageSettings; |
| this.syncState = syncState; |
| this.reverseDependencies = reverseDependencies; |
| } |
| } |