OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013, the Dart project authors. | 2 * Copyright (c) 2013, the Dart project authors. |
3 * | 3 * |
4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except | 4 * Licensed under the Eclipse Public License v1.0 (the "License"); you may not u
se this file except |
5 * in compliance with the License. You may obtain a copy of the License at | 5 * in compliance with the License. You may obtain a copy of the License at |
6 * | 6 * |
7 * http://www.eclipse.org/legal/epl-v10.html | 7 * http://www.eclipse.org/legal/epl-v10.html |
8 * | 8 * |
9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License | 9 * Unless required by applicable law or agreed to in writing, software distribut
ed under the License |
10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express | 10 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY K
IND, either express |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 // java.net.URI | 111 // java.net.URI |
112 if (isMethodInClass2(node, "create(java.lang.String)", "java.net.URI"))
{ | 112 if (isMethodInClass2(node, "create(java.lang.String)", "java.net.URI"))
{ |
113 replaceNode(node, methodInvocation(identifier("parseUriWithException")
, args)); | 113 replaceNode(node, methodInvocation(identifier("parseUriWithException")
, args)); |
114 return null; | 114 return null; |
115 } | 115 } |
116 if (isMethodInClass(node, "getScheme", "java.net.URI")) { | 116 if (isMethodInClass(node, "getScheme", "java.net.URI")) { |
117 replaceNode(node, propertyAccess(node.getTarget(), identifier("scheme"
))); | 117 replaceNode(node, propertyAccess(node.getTarget(), identifier("scheme"
))); |
118 return null; | 118 return null; |
119 } | 119 } |
120 if (isMethodInClass(node, "getPath", "java.net.URI") | 120 if (isMethodInClass(node, "getPath", "java.net.URI") |
121 || isMethodInClass(node, "getSchemeSpecificPart", "java.net.URI")) { | 121 || isMethodInClass(node, "getSchemeSpecificPart", "java.net.URI") |
| 122 || isMethodInClass(node, "getRawSchemeSpecificPart", "java.net.URI")
) { |
122 replaceNode(node, propertyAccess(node.getTarget(), identifier("path"))
); | 123 replaceNode(node, propertyAccess(node.getTarget(), identifier("path"))
); |
123 return null; | 124 return null; |
124 } | 125 } |
125 if (isMethodInClass2(node, "isAbsolute()", "java.net.URI")) { | 126 if (isMethodInClass2(node, "isAbsolute()", "java.net.URI")) { |
126 replaceNode(node, propertyAccess(node.getTarget(), nameNode)); | 127 replaceNode(node, propertyAccess(node.getTarget(), nameNode)); |
127 return null; | 128 return null; |
128 } | 129 } |
129 if (isMethodInClass2(node, "resolve(java.net.URI)", "java.net.URI")) { | 130 if (isMethodInClass2(node, "resolve(java.net.URI)", "java.net.URI")) { |
130 nameNode.setToken(token("resolveUri")); | 131 nameNode.setToken(token("resolveUri")); |
131 return null; | 132 return null; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 if (JavaUtils.isTypeNamed(binding, "java.io.IOException")) { | 166 if (JavaUtils.isTypeNamed(binding, "java.io.IOException")) { |
166 nameNode.setToken(token("JavaIOException")); | 167 nameNode.setToken(token("JavaIOException")); |
167 return null; | 168 return null; |
168 } | 169 } |
169 } | 170 } |
170 return null; | 171 return null; |
171 } | 172 } |
172 }); | 173 }); |
173 } | 174 } |
174 } | 175 } |
OLD | NEW |