| OLD | NEW |
| 1 library java.core; | 1 library java.core; |
| 2 | 2 |
| 3 import "dart:math" as math; | 3 import "dart:math" as math; |
| 4 import "dart:collection" show ListBase; | 4 import "dart:collection" show ListBase; |
| 5 | 5 |
| 6 class JavaSystem { | 6 class JavaSystem { |
| 7 static int currentTimeMillis() { | 7 static int currentTimeMillis() { |
| 8 return (new DateTime.now()).millisecondsSinceEpoch; | 8 return (new DateTime.now()).millisecondsSinceEpoch; |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 // Dart Analysis Engine specific | 40 // Dart Analysis Engine specific |
| 41 if (oTypeName == "${tTypeName}Impl") { | 41 if (oTypeName == "${tTypeName}Impl") { |
| 42 return true; | 42 return true; |
| 43 } | 43 } |
| 44 if (tTypeName == "MethodElement") { | 44 if (tTypeName == "MethodElement") { |
| 45 if (oTypeName == "MethodMember") { | 45 if (oTypeName == "MethodMember") { |
| 46 return true; | 46 return true; |
| 47 } | 47 } |
| 48 } | 48 } |
| 49 if (tTypeName == "ExecutableElement") { | 49 if (tTypeName == "ExecutableElement") { |
| 50 if (oTypeName == "MethodElementImpl" || oTypeName == "FunctionElementImpl")
{ | 50 if (oTypeName == "MethodElementImpl" || |
| 51 oTypeName == "FunctionElementImpl" || |
| 52 oTypeName == "PropertyAccessorElementImpl") { |
| 51 return true; | 53 return true; |
| 52 } | 54 } |
| 53 } | 55 } |
| 56 if (tTypeName == "ParameterElement") { |
| 57 if (oTypeName == "FieldFormalParameterElementImpl" || |
| 58 oTypeName == "DefaultFieldFormalParameterElementImpl" || |
| 59 oTypeName == "DefaultParameterElementImpl") { |
| 60 return true; |
| 61 } |
| 62 } |
| 63 if (tTypeName == "VariableElement") { |
| 64 if (oTypeName == "LocalVariableElementImpl" || |
| 65 oTypeName == "ConstLocalVariableElementImpl" || |
| 66 oTypeName == "FieldElementImpl" || |
| 67 oTypeName == "ConstFieldElementImpl" || |
| 68 oTypeName == "TopLevelVariableElementImpl" || |
| 69 oTypeName == "ConstTopLevelVariableElementImpl") { |
| 70 return true; |
| 71 } |
| 72 } |
| 54 // no | 73 // no |
| 55 return false; | 74 return false; |
| 56 } | 75 } |
| 57 | 76 |
| 58 class JavaArrays { | 77 class JavaArrays { |
| 59 static bool equals(List a, List b) { | 78 static bool equals(List a, List b) { |
| 60 if (a.length != b.length) { | 79 if (a.length != b.length) { |
| 61 return false; | 80 return false; |
| 62 } | 81 } |
| 63 var len = a.length; | 82 var len = a.length; |
| (...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 } | 548 } |
| 530 void clear() { | 549 void clear() { |
| 531 sb = new StringBuffer(); | 550 sb = new StringBuffer(); |
| 532 } | 551 } |
| 533 } | 552 } |
| 534 | 553 |
| 535 abstract class Enum<E> implements Comparable<E> { | 554 abstract class Enum<E> implements Comparable<E> { |
| 536 int get ordinal; | 555 int get ordinal; |
| 537 String get name; | 556 String get name; |
| 538 } | 557 } |
| OLD | NEW |