OLD | NEW |
1 library java.io; | 1 // Copyright (c) 2014, 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 library analyzer.src.generated.java_io; |
2 | 6 |
3 import "dart:io"; | 7 import "dart:io"; |
4 | 8 |
| 9 import 'package:analyzer/src/generated/java_core.dart' show JavaIOException; |
5 import 'package:path/path.dart' as path; | 10 import 'package:path/path.dart' as path; |
6 | 11 |
7 import 'java_core.dart' show JavaIOException; | |
8 | |
9 class JavaFile { | 12 class JavaFile { |
10 static path.Context pathContext = path.context; | 13 static path.Context pathContext = path.context; |
11 static final String separator = Platform.pathSeparator; | 14 static final String separator = Platform.pathSeparator; |
12 static final int separatorChar = Platform.pathSeparator.codeUnitAt(0); | 15 static final int separatorChar = Platform.pathSeparator.codeUnitAt(0); |
13 String _path; | 16 String _path; |
14 JavaFile(String path) { | 17 JavaFile(String path) { |
15 _path = path; | 18 _path = path; |
16 } | 19 } |
17 JavaFile.fromUri(Uri uri) : this(pathContext.fromUri(uri)); | 20 JavaFile.fromUri(Uri uri) : this(pathContext.fromUri(uri)); |
18 JavaFile.relative(JavaFile base, String child) { | 21 JavaFile.relative(JavaFile base, String child) { |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 } | 154 } |
152 return null; | 155 return null; |
153 } | 156 } |
154 | 157 |
155 static String setProperty(String name, String value) { | 158 static String setProperty(String name, String value) { |
156 String oldValue = _properties[name]; | 159 String oldValue = _properties[name]; |
157 _properties[name] = value; | 160 _properties[name] = value; |
158 return oldValue; | 161 return oldValue; |
159 } | 162 } |
160 } | 163 } |
OLD | NEW |