| 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 // The dart:mirrors library provides reflective access for Dart program. | 5 // The dart:mirrors library provides reflective access for Dart program. |
| 6 // | 6 // |
| 7 // For the purposes of the mirrors library, we adopt a naming | 7 // For the purposes of the mirrors library, we adopt a naming |
| 8 // convention with respect to getters and setters. Specifically, for | 8 // convention with respect to getters and setters. Specifically, for |
| 9 // some variable or field... | 9 // some variable or field... |
| 10 // | 10 // |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 */ | 75 */ |
| 76 InstanceMirror reflect(Object reflectee) { | 76 InstanceMirror reflect(Object reflectee) { |
| 77 return _Mirrors.reflect(reflectee); | 77 return _Mirrors.reflect(reflectee); |
| 78 } | 78 } |
| 79 | 79 |
| 80 /** | 80 /** |
| 81 * A [Mirror] reflects some Dart language entity. | 81 * A [Mirror] reflects some Dart language entity. |
| 82 * | 82 * |
| 83 * Every [Mirror] originates from some [MirrorSystem]. | 83 * Every [Mirror] originates from some [MirrorSystem]. |
| 84 */ | 84 */ |
| 85 abstract class Mirror implements Hashable { | 85 abstract class Mirror { |
| 86 /** | 86 /** |
| 87 * The [MirrorSystem] that contains this mirror. | 87 * The [MirrorSystem] that contains this mirror. |
| 88 */ | 88 */ |
| 89 MirrorSystem get mirrors; | 89 MirrorSystem get mirrors; |
| 90 } | 90 } |
| 91 | 91 |
| 92 /** | 92 /** |
| 93 * An [IsolateMirror] reflects an isolate. | 93 * An [IsolateMirror] reflects an isolate. |
| 94 */ | 94 */ |
| 95 abstract class IsolateMirror implements Mirror { | 95 abstract class IsolateMirror implements Mirror { |
| (...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 736 | 736 |
| 737 /** | 737 /** |
| 738 * A [MirrorException] is used to indicate errors within the mirrors | 738 * A [MirrorException] is used to indicate errors within the mirrors |
| 739 * framework. | 739 * framework. |
| 740 */ | 740 */ |
| 741 class MirrorException implements Exception { | 741 class MirrorException implements Exception { |
| 742 const MirrorException(String this._message); | 742 const MirrorException(String this._message); |
| 743 String toString() => "MirrorException: '$_message'"; | 743 String toString() => "MirrorException: '$_message'"; |
| 744 final String _message; | 744 final String _message; |
| 745 } | 745 } |
| OLD | NEW |