01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.internal.compiler.lookup;
11:
12: import org.eclipse.jdt.core.compiler.CharOperation;
13: import org.eclipse.jdt.internal.compiler.ast.ImportReference;
14:
15: public class ImportConflictBinding extends ImportBinding {
16: public ReferenceBinding conflictingTypeBinding; // must ensure the import is resolved
17:
18: public ImportConflictBinding(char[][] compoundName,
19: Binding methodBinding,
20: ReferenceBinding conflictingTypeBinding,
21: ImportReference reference) {
22: super (compoundName, false, methodBinding, reference);
23: this .conflictingTypeBinding = conflictingTypeBinding;
24: }
25:
26: public char[] readableName() {
27: return CharOperation.concatWith(compoundName, '.');
28: }
29:
30: public String toString() {
31: return "method import : " + new String(readableName()); //$NON-NLS-1$
32: }
33: }
|