Chromium Code Reviews| 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 #library('mirrors'); | 5 #library('mirrors'); |
| 6 | 6 |
| 7 #import('dart:io'); | 7 #import('dart:io'); |
| 8 #import('dart:uri'); | 8 #import('dart:uri'); |
| 9 | 9 |
| 10 // TODO(rnystrom): Use "package:" URL (#4968). | 10 // TODO(rnystrom): Use "package:" URL (#4968). |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 451 * Returns the list of parameters for this method. | 451 * Returns the list of parameters for this method. |
| 452 */ | 452 */ |
| 453 List<ParameterMirror> get parameters; | 453 List<ParameterMirror> get parameters; |
| 454 | 454 |
| 455 /** | 455 /** |
| 456 * Returns the return type of this method. | 456 * Returns the return type of this method. |
| 457 */ | 457 */ |
| 458 TypeMirror get returnType; | 458 TypeMirror get returnType; |
| 459 | 459 |
| 460 /** | 460 /** |
| 461 * Is [:true:] if this method is declared abstract. | 461 * Is the reflectee abstract? |
| 462 */ | 462 */ |
| 463 bool get isAbstract; | 463 bool get isAbstract; |
| 464 | 464 |
| 465 /** | 465 /** |
| 466 * Is [:true:] if this method is a constant constructor. | 466 * Is the reflectee a regular function or method? |
| 467 * | |
| 468 * A function or method is regular if it is not a getter, setter, or | |
| 469 * constructor. Note that operators, by this definition, are | |
| 470 * regular methods. | |
|
ahe
2012/11/06 10:07:47
What about factories?
| |
| 467 */ | 471 */ |
| 468 bool get isConst; | 472 bool get isRegularMethod; |
| 469 | 473 |
| 470 /** | 474 /** |
| 471 * Is [:true:] if this method is a factory method. | 475 * Is the reflectee a const constructor? |
| 472 */ | 476 */ |
| 473 bool get isFactory; | 477 bool get isConstConstructor; |
| 478 | |
| 479 /** | |
| 480 * Is the reflectee a generative constructor? | |
| 481 */ | |
| 482 bool get isGenerativeConstructor; | |
| 483 | |
| 484 /** | |
| 485 * Is the reflectee a redirecting constructor? | |
| 486 */ | |
| 487 bool get isRedirectingConstructor; | |
| 488 | |
| 489 /** | |
| 490 * Is the reflectee a factory constructor? | |
| 491 */ | |
| 492 bool get isFactoryConstructor; | |
| 474 | 493 |
| 475 /** | 494 /** |
| 476 * Returns the constructor name for named constructors and factory methods, | 495 * Returns the constructor name for named constructors and factory methods, |
| 477 * e.g. [:'bar':] for constructor [:Foo.bar:] of type [:Foo:]. | 496 * e.g. [:'bar':] for constructor [:Foo.bar:] of type [:Foo:]. |
| 478 */ | 497 */ |
| 479 String get constructorName; | 498 String get constructorName; |
| 480 | 499 |
| 481 /** | 500 /** |
| 482 * Is [:true:] if this method is a getter method. | 501 * Is [:true:] if this method is a getter method. |
| 483 */ | 502 */ |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 579 /** | 598 /** |
| 580 * Returns the URI where the source originated. | 599 * Returns the URI where the source originated. |
| 581 */ | 600 */ |
| 582 Uri get uri; | 601 Uri get uri; |
| 583 | 602 |
| 584 /** | 603 /** |
| 585 * Returns the text of this source. | 604 * Returns the text of this source. |
| 586 */ | 605 */ |
| 587 String get text; | 606 String get text; |
| 588 } | 607 } |
| OLD | NEW |