| 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 // isSocketOpen() |
| 82 // |
| 83 publicMethod('isSocketOpen', () { |
| 84 writeln('''/** |
| 85 * Return {@code true} if the socket is open. |
| 86 */'''); |
| 87 writeln( |
| 88 'public boolean isSocketOpen();'); |
| 89 }); |
| 90 |
| 91 // |
| 81 // start(..) | 92 // start(..) |
| 82 // | 93 // |
| 83 publicMethod('start', () { | 94 publicMethod('start', () { |
| 84 writeln('''/** | 95 writeln('''/** |
| 85 * Start the analysis server. | 96 * Start the analysis server. |
| 86 */'''); | 97 */'''); |
| 87 writeln('public void start() throws Exception;'); | 98 writeln('public void start() throws Exception;'); |
| 88 }); | 99 }); |
| 89 super.visitApi(); | 100 super.visitApi(); |
| 90 }); | 101 }); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 107 } | 118 } |
| 108 } | 119 } |
| 109 if (request.result != null) { | 120 if (request.result != null) { |
| 110 arguments.add('${consumerName(request)} consumer'); | 121 arguments.add('${consumerName(request)} consumer'); |
| 111 } | 122 } |
| 112 write(arguments.join(', ')); | 123 write(arguments.join(', ')); |
| 113 writeln(');'); | 124 writeln(');'); |
| 114 }); | 125 }); |
| 115 } | 126 } |
| 116 } | 127 } |
| OLD | NEW |