OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 // Dart core library. | 5 // Dart core library. |
6 | 6 |
7 /** | 7 /** |
8 * The Options object allows accessing the arguments which have been passed to | 8 * The Options object allows accessing the arguments which have been passed to |
9 * the current isolate. | 9 * the current isolate. |
10 */ | 10 */ |
11 interface Options default RuntimeOptions { | 11 interface Options default RuntimeOptions { |
12 /** | 12 /** |
13 * A newly constructed Options object contains the arguments exactly as they | 13 * A newly constructed Options object contains the arguments exactly as they |
14 * have been passed to the isolate. | 14 * have been passed to the isolate. |
15 */ | 15 */ |
16 Options(); | 16 Options(); |
17 | 17 |
18 /** | 18 /** |
19 * Returns a list of arguments that have been passed to this isolate. Any | 19 * Returns a list of arguments that have been passed to this isolate. Any |
20 * modifications to the list will be contained to the options object owning | 20 * modifications to the list will be contained to the options object owning |
21 * this list. | 21 * this list. |
22 * | 22 * |
23 * If the execution environment does not support [arguments] an empty list | 23 * If the execution environment does not support [arguments] an empty list |
24 * is returned. | 24 * is returned. |
25 */ | 25 */ |
26 List<String> get arguments(); | 26 List<String> get arguments; |
27 | 27 |
28 /** | 28 /** |
29 * Returns the path of the executable used to run the script in this | 29 * Returns the path of the executable used to run the script in this |
30 * isolate. | 30 * isolate. |
31 * | 31 * |
32 * If the execution environment does not support [executable] an empty | 32 * If the execution environment does not support [executable] an empty |
33 * string is returned. | 33 * string is returned. |
34 */ | 34 */ |
35 String get executable(); | 35 String get executable; |
36 | 36 |
37 /** | 37 /** |
38 * Returns the path of the script being run in this isolate. | 38 * Returns the path of the script being run in this isolate. |
39 * | 39 * |
40 * If the executable environment does not support [script] an empty | 40 * If the executable environment does not support [script] an empty |
41 * string is returned. | 41 * string is returned. |
42 */ | 42 */ |
43 String get script(); | 43 String get script; |
44 } | 44 } |
OLD | NEW |