| Index: editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/AnalysisStatus.java
|
| diff --git a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/AnalysisStatus.java b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/AnalysisStatus.java
|
| index fdd1a5551f2fd33fe7e1cb354843cfc3a52e18ae..d33af403f22448c08ca2c2afab19bf7839d222e9 100644
|
| --- a/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/AnalysisStatus.java
|
| +++ b/editor/tools/plugins/com.google.dart.server/src/com/google/dart/server/AnalysisStatus.java
|
| @@ -14,20 +14,45 @@
|
| package com.google.dart.server;
|
|
|
| /**
|
| - * The interface {@code AnalysisStatus} defines the behavior of objects that indicate the current
|
| - * state of analysis.
|
| + * Instances of the class {@code AnalysisStatus} represent the current state of analysis.
|
| *
|
| * @coverage dart.server
|
| */
|
| -public interface AnalysisStatus {
|
| +public class AnalysisStatus {
|
| /**
|
| - * Returns the name of the current target of analysis, {@code null} if {@link #isAnalyzing} is
|
| + * A flag indicating whether analysis is currently being performed.
|
| + */
|
| + private boolean isAnalyzing;
|
| +
|
| + /**
|
| + * The name of the current target of analysis.
|
| + */
|
| + private String analysisTarget;
|
| +
|
| + /**
|
| + * Initialize a newly created status object.
|
| + */
|
| + public AnalysisStatus(boolean isAnalyzing, String analysisTarget) {
|
| + this.isAnalyzing = isAnalyzing;
|
| + this.analysisTarget = analysisTarget;
|
| + }
|
| +
|
| + /**
|
| + * Return the name of the current target of analysis, {@code null} if {@link #isAnalyzing} is
|
| * {@code false}.
|
| + *
|
| + * @return the name of the current target of analysis
|
| */
|
| - String getAnalysisTarget();
|
| + public String getAnalysisTarget() {
|
| + return analysisTarget;
|
| + }
|
|
|
| /**
|
| - * Returns {@code true} if analysis is currently being performed.
|
| + * Return {@code true} if analysis is currently being performed.
|
| + *
|
| + * @return {@code true} if analysis is currently being performed
|
| */
|
| - boolean isAnalyzing();
|
| + public boolean isAnalyzing() {
|
| + return isAnalyzing;
|
| + }
|
| }
|
|
|