| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * Code generation for the file "AnalysisServer.java". | 6 * Code generation for the file "AnalysisServer.java". |
| 7 */ | 7 */ |
| 8 library java.generator.server; | 8 library java.generator.server; |
| 9 | 9 |
| 10 import 'api.dart'; | 10 import 'api.dart'; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 * Remove the given listener from the list of listeners that will receive notifi
cation when new | 71 * Remove the given listener from the list of listeners that will receive notifi
cation when new |
| 72 * analysis results become available. | 72 * analysis results become available. |
| 73 * | 73 * |
| 74 * @param listener the listener to be removed | 74 * @param listener the listener to be removed |
| 75 */'''); | 75 */'''); |
| 76 writeln( | 76 writeln( |
| 77 'public void removeAnalysisServerListener(AnalysisServerListener lis
tener);'); | 77 'public void removeAnalysisServerListener(AnalysisServerListener lis
tener);'); |
| 78 }); | 78 }); |
| 79 | 79 |
| 80 // | 80 // |
| 81 // addStatusListener(..) |
| 82 // |
| 83 publicMethod('addStatusListener', () { |
| 84 writeln('''/** |
| 85 * Add the given listener to the list of listeners that will receive notificatio
n when the server |
| 86 * is not active |
| 87 * |
| 88 * @param listener the listener to be added |
| 89 */'''); |
| 90 writeln( |
| 91 'public void addStatusListener(AnalysisServerStatusListener listener
);'); |
| 92 }); |
| 93 |
| 94 // |
| 81 // isSocketOpen() | 95 // isSocketOpen() |
| 82 // | 96 // |
| 83 publicMethod('isSocketOpen', () { | 97 publicMethod('isSocketOpen', () { |
| 84 writeln('''/** | 98 writeln('''/** |
| 85 * Return {@code true} if the socket is open. | 99 * Return {@code true} if the socket is open. |
| 86 */'''); | 100 */'''); |
| 87 writeln( | 101 writeln('public boolean isSocketOpen();'); |
| 88 'public boolean isSocketOpen();'); | 102 }); |
| 89 }); | |
| 90 | 103 |
| 91 // | 104 // |
| 92 // start(..) | 105 // start(..) |
| 93 // | 106 // |
| 94 publicMethod('start', () { | 107 publicMethod('start', () { |
| 95 writeln('''/** | 108 writeln('''/** |
| 96 * Start the analysis server. | 109 * Start the analysis server. |
| 97 */'''); | 110 */'''); |
| 98 writeln('public void start() throws Exception;'); | 111 writeln('public void start() throws Exception;'); |
| 99 }); | 112 }); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 118 } | 131 } |
| 119 } | 132 } |
| 120 if (request.result != null) { | 133 if (request.result != null) { |
| 121 arguments.add('${consumerName(request)} consumer'); | 134 arguments.add('${consumerName(request)} consumer'); |
| 122 } | 135 } |
| 123 write(arguments.join(', ')); | 136 write(arguments.join(', ')); |
| 124 writeln(');'); | 137 writeln(');'); |
| 125 }); | 138 }); |
| 126 } | 139 } |
| 127 } | 140 } |
| OLD | NEW |