Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Side by Side Diff: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/AnalysisStatus.java

Issue 303233007: First cut at server timing tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed some bugs, added tests Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2014, the Dart project authors. 2 * Copyright (c) 2014, the Dart project authors.
3 * 3 *
4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u se this file except 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 5 * in compliance with the License. You may obtain a copy of the License at
6 * 6 *
7 * http://www.eclipse.org/legal/epl-v10.html 7 * http://www.eclipse.org/legal/epl-v10.html
8 * 8 *
9 * Unless required by applicable law or agreed to in writing, software distribut ed under the License 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 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 11 * or implied. See the License for the specific language governing permissions a nd limitations under
12 * the License. 12 * the License.
13 */ 13 */
14 package com.google.dart.server; 14 package com.google.dart.server;
15 15
16 /** 16 /**
17 * The interface {@code AnalysisStatus} defines the behavior of objects that ind icate the current 17 * Instances of the class {@code AnalysisStatus} represent the current state of analysis.
18 * state of analysis.
19 * 18 *
20 * @coverage dart.server 19 * @coverage dart.server
21 */ 20 */
22 public interface AnalysisStatus { 21 public class AnalysisStatus {
23 /** 22 /**
24 * Returns the name of the current target of analysis, {@code null} if {@link #isAnalyzing} is 23 * A flag indicating whether analysis is currently being performed.
25 * {@code false}.
26 */ 24 */
27 String getAnalysisTarget(); 25 private boolean isAnalyzing;
28 26
29 /** 27 /**
30 * Returns {@code true} if analysis is currently being performed. 28 * The name of the current target of analysis.
31 */ 29 */
32 boolean isAnalyzing(); 30 private String analysisTarget;
31
32 /**
33 * Initialize a newly created status object.
34 */
35 public AnalysisStatus(boolean isAnalyzing, String analysisTarget) {
36 this.isAnalyzing = isAnalyzing;
37 this.analysisTarget = analysisTarget;
38 }
39
40 /**
41 * Return the name of the current target of analysis, {@code null} if {@link # isAnalyzing} is
42 * {@code false}.
43 *
44 * @return the name of the current target of analysis
45 */
46 public String getAnalysisTarget() {
47 return analysisTarget;
48 }
49
50 /**
51 * Return {@code true} if analysis is currently being performed.
52 *
53 * @return {@code true} if analysis is currently being performed
54 */
55 public boolean isAnalyzing() {
56 return isAnalyzing;
57 }
33 } 58 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698