OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
6 | 6 |
7 class _DirectoryEntryWrappingImplementation extends _EntryWrappingImplementation
implements DirectoryEntry { | 7 class _DirectoryEntryWrappingImplementation extends _EntryWrappingImplementation
implements DirectoryEntry { |
8 _DirectoryEntryWrappingImplementation() : super() {} | 8 _DirectoryEntryWrappingImplementation() : super() {} |
9 | 9 |
10 static create__DirectoryEntryWrappingImplementation() native { | 10 static create__DirectoryEntryWrappingImplementation() native { |
11 return new _DirectoryEntryWrappingImplementation(); | 11 return new _DirectoryEntryWrappingImplementation(); |
12 } | 12 } |
13 | 13 |
14 DirectoryReader createReader() { | 14 DirectoryReader createReader() { |
15 return _createReader(this); | 15 return _createReader(this); |
16 } | 16 } |
17 static DirectoryReader _createReader(receiver) native; | 17 static DirectoryReader _createReader(receiver) native; |
18 | 18 |
19 void getDirectory(String path, [Object flags = null, EntryCallback successCall
back = null, ErrorCallback errorCallback = null]) { | 19 void getDirectory(String path, [Object flags = null, EntryCallback successCall
back = null, ErrorCallback errorCallback = null]) { |
20 _getDirectory(this, path, flags, successCallback, errorCallback); | 20 if (flags === null) { |
21 return; | 21 if (successCallback === null) { |
| 22 if (errorCallback === null) { |
| 23 _getDirectory(this, path); |
| 24 return; |
| 25 } |
| 26 } |
| 27 } else { |
| 28 _getDirectory_2(this, path, flags, successCallback, errorCallback); |
| 29 return; |
| 30 } |
| 31 throw "Incorrect number or type of arguments"; |
22 } | 32 } |
23 static void _getDirectory(receiver, path, flags, successCallback, errorCallbac
k) native; | 33 static void _getDirectory(receiver, path) native; |
| 34 static void _getDirectory_2(receiver, path, flags, successCallback, errorCallb
ack) native; |
24 | 35 |
25 void getFile(String path, [Object flags = null, EntryCallback successCallback
= null, ErrorCallback errorCallback = null]) { | 36 void getFile(String path, [Object flags = null, EntryCallback successCallback
= null, ErrorCallback errorCallback = null]) { |
26 _getFile(this, path, flags, successCallback, errorCallback); | 37 if (flags === null) { |
27 return; | 38 if (successCallback === null) { |
| 39 if (errorCallback === null) { |
| 40 _getFile(this, path); |
| 41 return; |
| 42 } |
| 43 } |
| 44 } else { |
| 45 _getFile_2(this, path, flags, successCallback, errorCallback); |
| 46 return; |
| 47 } |
| 48 throw "Incorrect number or type of arguments"; |
28 } | 49 } |
29 static void _getFile(receiver, path, flags, successCallback, errorCallback) na
tive; | 50 static void _getFile(receiver, path) native; |
| 51 static void _getFile_2(receiver, path, flags, successCallback, errorCallback)
native; |
30 | 52 |
31 void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallb
ack = null]) { | 53 void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallb
ack = null]) { |
32 _removeRecursively(this, successCallback, errorCallback); | 54 _removeRecursively(this, successCallback, errorCallback); |
33 return; | 55 return; |
34 } | 56 } |
35 static void _removeRecursively(receiver, successCallback, errorCallback) nativ
e; | 57 static void _removeRecursively(receiver, successCallback, errorCallback) nativ
e; |
36 | 58 |
37 String get typeName() { return "DirectoryEntry"; } | 59 String get typeName() { return "DirectoryEntry"; } |
38 } | 60 } |
OLD | NEW |