KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > compiler > lookup > ImportConflictBinding


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdt.internal.compiler.lookup;
12
13 import org.eclipse.jdt.core.compiler.CharOperation;
14 import org.eclipse.jdt.internal.compiler.ast.ImportReference;
15
16 public class ImportConflictBinding extends ImportBinding {
17 public ReferenceBinding conflictingTypeBinding; // must ensure the import is resolved
18

19 public ImportConflictBinding(char[][] compoundName, Binding methodBinding, ReferenceBinding conflictingTypeBinding, ImportReference reference) {
20     super(compoundName, false, methodBinding, reference);
21     this.conflictingTypeBinding = conflictingTypeBinding;
22 }
23 public char[] readableName() {
24     return CharOperation.concatWith(compoundName, '.');
25 }
26 public String JavaDoc toString() {
27     return "method import : " + new String JavaDoc(readableName()); //$NON-NLS-1$
28
}
29 }
30
Popular Tags