| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 // WARNING: Do not edit - generated code. | |
| 6 | |
| 7 class DirectoryEntryWrappingImplementation extends EntryWrappingImplementation i
mplements DirectoryEntry { | |
| 8 DirectoryEntryWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | |
| 9 | |
| 10 DirectoryReader createReader() { | |
| 11 return LevelDom.wrapDirectoryReader(_ptr.createReader()); | |
| 12 } | |
| 13 | |
| 14 void getDirectory(String path, [Flags flags, EntryCallback successCallback, Er
rorCallback errorCallback]) { | |
| 15 if (flags === null) { | |
| 16 if (successCallback === null) { | |
| 17 if (errorCallback === null) { | |
| 18 _ptr.getDirectory(path); | |
| 19 return; | |
| 20 } | |
| 21 } | |
| 22 } else { | |
| 23 if (successCallback === null) { | |
| 24 if (errorCallback === null) { | |
| 25 _ptr.getDirectory(path, LevelDom.unwrap(flags)); | |
| 26 return; | |
| 27 } | |
| 28 } else { | |
| 29 if (errorCallback === null) { | |
| 30 _ptr.getDirectory(path, LevelDom.unwrap(flags), successCallback); | |
| 31 return; | |
| 32 } else { | |
| 33 _ptr.getDirectory(path, LevelDom.unwrap(flags), successCallback, Level
Dom.unwrap(errorCallback)); | |
| 34 return; | |
| 35 } | |
| 36 } | |
| 37 } | |
| 38 throw "Incorrect number or type of arguments"; | |
| 39 } | |
| 40 | |
| 41 void getFile(String path, [Flags flags, EntryCallback successCallback, ErrorCa
llback errorCallback]) { | |
| 42 if (flags === null) { | |
| 43 if (successCallback === null) { | |
| 44 if (errorCallback === null) { | |
| 45 _ptr.getFile(path); | |
| 46 return; | |
| 47 } | |
| 48 } | |
| 49 } else { | |
| 50 if (successCallback === null) { | |
| 51 if (errorCallback === null) { | |
| 52 _ptr.getFile(path, LevelDom.unwrap(flags)); | |
| 53 return; | |
| 54 } | |
| 55 } else { | |
| 56 if (errorCallback === null) { | |
| 57 _ptr.getFile(path, LevelDom.unwrap(flags), successCallback); | |
| 58 return; | |
| 59 } else { | |
| 60 _ptr.getFile(path, LevelDom.unwrap(flags), successCallback, LevelDom.u
nwrap(errorCallback)); | |
| 61 return; | |
| 62 } | |
| 63 } | |
| 64 } | |
| 65 throw "Incorrect number or type of arguments"; | |
| 66 } | |
| 67 | |
| 68 void removeRecursively([VoidCallback successCallback, ErrorCallback errorCallb
ack]) { | |
| 69 if (successCallback === null) { | |
| 70 if (errorCallback === null) { | |
| 71 _ptr.removeRecursively(); | |
| 72 return; | |
| 73 } | |
| 74 } else { | |
| 75 if (errorCallback === null) { | |
| 76 _ptr.removeRecursively(LevelDom.unwrap(successCallback)); | |
| 77 return; | |
| 78 } else { | |
| 79 _ptr.removeRecursively(LevelDom.unwrap(successCallback), LevelDom.unwrap
(errorCallback)); | |
| 80 return; | |
| 81 } | |
| 82 } | |
| 83 throw "Incorrect number or type of arguments"; | |
| 84 } | |
| 85 } | |
| OLD | NEW |