| 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 /** | 5 /** |
| 6 * Representation of the invocation of a member on an object. | 6 * Representation of the invocation of a member on an object. |
| 7 * | 7 * |
| 8 * This is the type of objects passed to [Object.noSuchMethod] when | 8 * This is the type of objects passed to [Object.noSuchMethod] when |
| 9 * an object doesn't support the member invocation that was attempted | 9 * an object doesn't support the member invocation that was attempted |
| 10 * on it. | 10 * on it. |
| 11 */ | 11 */ |
| 12 abstract class InvocationMirror { | 12 abstract class InvocationMirror { |
| 13 /** The name of the invoked member. */ | 13 /** The name of the invoked member. */ |
| 14 String get memberName; | 14 String get memberName; |
| 15 | 15 |
| 16 /** An unmodifiable view of the positional arguments of the call. */ | 16 /** An unmodifiable view of the positional arguments of the call. */ |
| 17 List get positionalArguments; | 17 List get positionalArguments; |
| 18 | 18 |
| 19 /** An unmodifiable view of the named arguments of the call. */ | 19 /** An unmodifiable view of the named arguments of the call. */ |
| 20 Map<String, Dynamic> get namedArguments; | 20 Map<String, dynamic> get namedArguments; |
| 21 | 21 |
| 22 /** Whether the invocation was a method call. */ | 22 /** Whether the invocation was a method call. */ |
| 23 bool get isMethod; | 23 bool get isMethod; |
| 24 | 24 |
| 25 /** | 25 /** |
| 26 * Whether the invocation was a getter call. | 26 * Whether the invocation was a getter call. |
| 27 * If so, both types of arguments will be null. | 27 * If so, both types of arguments will be null. |
| 28 */ | 28 */ |
| 29 bool get isGetter; | 29 bool get isGetter; |
| 30 | 30 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 /** | 42 /** |
| 43 * Perform the invocation on the provided object. | 43 * Perform the invocation on the provided object. |
| 44 * | 44 * |
| 45 * If the object doesn't support the invocation, its [noSuchMethod] | 45 * If the object doesn't support the invocation, its [noSuchMethod] |
| 46 * method will be called with either this [InvocationMirror] or another | 46 * method will be called with either this [InvocationMirror] or another |
| 47 * equivalent [InvocationMirror]. | 47 * equivalent [InvocationMirror]. |
| 48 */ | 48 */ |
| 49 invokeOn(Object receiver); | 49 invokeOn(Object receiver); |
| 50 } | 50 } |
| OLD | NEW |