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

Side by Side Diff: dart/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/processor/SemanticProcessor.java

Issue 56933002: Version 0.8.10.1 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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 /* 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 */ 106 */
107 protected final boolean isMethodInClass2(MethodInvocation node, String reqSign ature, 107 protected final boolean isMethodInClass2(MethodInvocation node, String reqSign ature,
108 String reqClassName) { 108 String reqClassName) {
109 Object nodeBinding = context.getNodeBinding(node); 109 Object nodeBinding = context.getNodeBinding(node);
110 if (nodeBinding instanceof IMethodBinding) { 110 if (nodeBinding instanceof IMethodBinding) {
111 IMethodBinding binding = (IMethodBinding) nodeBinding; 111 IMethodBinding binding = (IMethodBinding) nodeBinding;
112 return isMethodInClass2(binding, reqSignature, reqClassName); 112 return isMethodInClass2(binding, reqSignature, reqClassName);
113 } 113 }
114 return false; 114 return false;
115 } 115 }
116
117 /**
118 * Checks if given {@link IMethodBinding} is method of given class with given signature.
119 */
120 protected final boolean isMethodInExactClass(IMethodBinding binding, String re qSignature,
121 String reqClassName) {
122 return JavaUtils.getMethodDeclarationSignature(binding).equals(reqSignature)
123 && JavaUtils.isTypeNamed(binding.getDeclaringClass(), reqClassName);
124 }
116 } 125 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698