OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 // For the purposes of the mirrors library, we adopt a naming | 5 // For the purposes of the mirrors library, we adopt a naming |
6 // convention with respect to getters and setters. Specifically, for | 6 // convention with respect to getters and setters. Specifically, for |
7 // some variable or field... | 7 // some variable or field... |
8 // | 8 // |
9 // var myField; | 9 // var myField; |
10 // | 10 // |
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
878 * A [TypeVariableMirror] represents a type parameter of a generic | 878 * A [TypeVariableMirror] represents a type parameter of a generic |
879 * type. | 879 * type. |
880 */ | 880 */ |
881 abstract class TypeVariableMirror extends TypeMirror { | 881 abstract class TypeVariableMirror extends TypeMirror { |
882 /** | 882 /** |
883 * A mirror on the type that is the upper bound of this type variable. | 883 * A mirror on the type that is the upper bound of this type variable. |
884 */ | 884 */ |
885 TypeMirror get upperBound; | 885 TypeMirror get upperBound; |
886 | 886 |
887 /** | 887 /** |
| 888 * Is the reflectee static? |
| 889 * |
| 890 * For the purposes of the mirrors library, type variables are considered |
| 891 * non-static. |
| 892 */ |
| 893 bool get isStatic; |
| 894 |
| 895 /** |
888 * Returns [:true:] if this mirror is equal to [other]. | 896 * Returns [:true:] if this mirror is equal to [other]. |
889 * Otherwise returns [:false:]. | 897 * Otherwise returns [:false:]. |
890 * | 898 * |
891 * The equality holds if and only if | 899 * The equality holds if and only if |
892 * (1) [other] is a mirror of the same kind | 900 * (1) [other] is a mirror of the same kind |
893 * and | 901 * and |
894 * (2) [:simpleName == other.simpleName:] and | 902 * (2) [:simpleName == other.simpleName:] and |
895 * [:owner == other.owner:]. | 903 * [:owner == other.owner:]. |
896 */ | 904 */ |
897 bool operator == (other); | 905 bool operator == (other); |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1230 * | 1238 * |
1231 * When used as metadata on an import of "dart:mirrors", this metadata does | 1239 * When used as metadata on an import of "dart:mirrors", this metadata does |
1232 * not apply to the library in which the annotation is used, but instead | 1240 * not apply to the library in which the annotation is used, but instead |
1233 * applies to the other libraries (all libraries if "*" is used). | 1241 * applies to the other libraries (all libraries if "*" is used). |
1234 */ | 1242 */ |
1235 final override; | 1243 final override; |
1236 | 1244 |
1237 const MirrorsUsed( | 1245 const MirrorsUsed( |
1238 {this.symbols, this.targets, this.metaTargets, this.override}); | 1246 {this.symbols, this.targets, this.metaTargets, this.override}); |
1239 } | 1247 } |
OLD | NEW |