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

Side by Side Diff: pkg/analyzer_experimental/lib/src/generated/java_core.dart

Issue 23461019: New analyzer_experimental snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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
OLDNEW
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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 } 267 }
268 return sb.toString(); 268 return sb.toString();
269 } 269 }
270 } 270 }
271 271
272 class Math { 272 class Math {
273 static num max(num a, num b) => math.max(a, b); 273 static num max(num a, num b) => math.max(a, b);
274 static num min(num a, num b) => math.min(a, b); 274 static num min(num a, num b) => math.min(a, b);
275 } 275 }
276 276
277 class RuntimeException implements Exception { 277 class RuntimeException extends JavaException {
278 String toString() => "RuntimeException"; 278 RuntimeException([String message = "", Exception cause = null]) :
279 super(message, cause);
279 } 280 }
280 281
281 class JavaException implements Exception { 282 class JavaException implements Exception {
282 final String message; 283 final String message;
283 final Exception cause; 284 final Exception cause;
284 JavaException([this.message = "", this.cause = null]); 285 JavaException([this.message = "", this.cause = null]);
285 JavaException.withCause(this.cause) : message = null; 286 JavaException.withCause(this.cause) : message = null;
286 String toString() => "JavaException: $message $cause"; 287 String toString() => "${runtimeType}: $message $cause";
287 } 288 }
288 289
289 class JavaIOException extends JavaException { 290 class JavaIOException extends JavaException {
290 JavaIOException([message = "", cause = null]) : super(message, cause); 291 JavaIOException([message = "", cause = null]) : super(message, cause);
291 } 292 }
292 293
293 class IllegalArgumentException implements Exception { 294 class IllegalArgumentException implements Exception {
294 final String message; 295 final String message;
295 const IllegalArgumentException([this.message = "", Exception e = null]); 296 const IllegalArgumentException([this.message = "", Exception e = null]);
296 String toString() => "IllegalStateException: $message"; 297 String toString() => "IllegalStateException: $message";
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 abstract class Enum<E extends Enum> implements Comparable<E> { 558 abstract class Enum<E extends Enum> implements Comparable<E> {
558 /// The name of this enum constant, as declared in the enum declaration. 559 /// The name of this enum constant, as declared in the enum declaration.
559 final String name; 560 final String name;
560 /// The position in the enum declaration. 561 /// The position in the enum declaration.
561 final int ordinal; 562 final int ordinal;
562 Enum(this.name, this.ordinal); 563 Enum(this.name, this.ordinal);
563 int get hashCode => ordinal; 564 int get hashCode => ordinal;
564 String toString() => name; 565 String toString() => name;
565 int compareTo(E other) => ordinal - other.ordinal; 566 int compareTo(E other) => ordinal - other.ordinal;
566 } 567 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698