Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Side by Side Diff: dart/sdk/lib/core/invocation_mirror.dart

Issue 14049009: Rename Invocation to InvocationMirror. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « dart/sdk/lib/core/invocation.dart ('k') | dart/sdk/lib/core/object.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 part of dart.core;
6
7 /**
8 * Representation of the invocation of a member on an object.
9 *
10 * This is the type of objects passed to [Object.noSuchMethod] when
11 * an object doesn't support the member invocation that was attempted
12 * on it.
13 */
14 abstract class InvocationMirror {
15 /** The name of the invoked member. */
16 String get memberName;
17
18 /** An unmodifiable view of the positional arguments of the call. */
19 List get positionalArguments;
20
21 /** An unmodifiable view of the named arguments of the call. */
22 Map<String, dynamic> get namedArguments;
23
24 /** Whether the invocation was a method call. */
25 bool get isMethod;
26
27 /**
28 * Whether the invocation was a getter call.
29 * If so, both types of arguments will be null.
30 */
31 bool get isGetter;
32
33 /**
34 * Whether the invocation was a setter call.
35 *
36 * If so, [arguments] will have exactly one positonal argument,
37 * and namedArguments will be null.
38 */
39 bool get isSetter;
40
41 /** Whether the invocation was a getter or a setter call. */
42 bool get isAccessor => isGetter || isSetter;
43
44 /**
45 * Perform the invocation on the provided object.
46 *
47 * If the object doesn't support the invocation, its [noSuchMethod]
48 * method will be called with either this [InvocationMirror] or another
49 * equivalent [InvocationMirror].
50 */
51 invokeOn(Object receiver);
52 }
OLDNEW
« no previous file with comments | « dart/sdk/lib/core/invocation.dart ('k') | dart/sdk/lib/core/object.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698