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

Unified Diff: lib/mirrors/mirrors.dart

Issue 10704259: Added getField/setField to ObjectMirror. For InstanceMirrors, this get/sets (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/lib/mirrors.cc » ('j') | runtime/lib/mirrors.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/mirrors/mirrors.dart
===================================================================
--- lib/mirrors/mirrors.dart (revision 9728)
+++ lib/mirrors/mirrors.dart (working copy)
@@ -121,6 +121,19 @@
Future<InstanceMirror> invoke(String memberName,
List<Object> positionalArguments,
[Map<String,Object> namedArguments]);
+
+ /**
+ * Invokes a getter and returns a mirror on the result. The getter may be
+ * either the implicit getter for a field or a user-defined getter method.
+ */
+ Future<InstanceMirror> getField(String fieldName);
+
+ /**
+ * Invokes a setter and returns a mirror on the result. The setter may be
+ * either the implicit setter for a non-final field or a user-defined setter
+ * method.
+ */
+ Future<InstanceMirror> setField(String fieldName, Object value);
}
/**
« no previous file with comments | « no previous file | runtime/lib/mirrors.cc » ('j') | runtime/lib/mirrors.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698