| OLD | NEW |
| (Empty) |
| 1 /* | |
| 2 * Copyright (c) 2014, the Dart project authors. | |
| 3 * | |
| 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except | |
| 5 * in compliance with the License. You may obtain a copy of the License at | |
| 6 * | |
| 7 * http://www.eclipse.org/legal/epl-v10.html | |
| 8 * | |
| 9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License | |
| 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express | |
| 11 * or implied. See the License for the specific language governing permissions a
nd limitations under | |
| 12 * the License. | |
| 13 */ | |
| 14 package com.google.dart.server; | |
| 15 | |
| 16 /** | |
| 17 * Instances of the class {@code ServerStatus} represent the current state of th
e server. | |
| 18 * | |
| 19 * @coverage dart.server | |
| 20 */ | |
| 21 public class ServerStatus { | |
| 22 /** | |
| 23 * The current status of analysis. | |
| 24 */ | |
| 25 private AnalysisStatus analysisStatus; | |
| 26 | |
| 27 /** | |
| 28 * Initialize a newly created status object. | |
| 29 */ | |
| 30 public ServerStatus() { | |
| 31 super(); | |
| 32 } | |
| 33 | |
| 34 /** | |
| 35 * Return the current status of analysis, or {@code null} if the analysis stat
us was not included | |
| 36 * in the status that was reported. | |
| 37 * | |
| 38 * @return the current status of analysis | |
| 39 */ | |
| 40 public AnalysisStatus getAnalysisStatus() { | |
| 41 return analysisStatus; | |
| 42 } | |
| 43 | |
| 44 /** | |
| 45 * Set the current status of analysis to the given status. | |
| 46 * | |
| 47 * @param analysisStatus the current status of analysis | |
| 48 */ | |
| 49 public void setAnalysisStatus(AnalysisStatus analysisStatus) { | |
| 50 this.analysisStatus = analysisStatus; | |
| 51 } | |
| 52 } | |
| OLD | NEW |