1 /*******************************************************************************
2 * Copyright (c) 2000, 2003 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v10.html
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 package net.sourceforge.phpdt.internal.compiler.lookup;
13 public class ProblemReferenceBinding extends ReferenceBinding {
14 public Binding original;
15 private int problemId;
16 // NOTE: must only answer the subset of the name related to the problem
18 public ProblemReferenceBinding(char[][] compoundName, int problemId) {
19 this(compoundName, null, problemId);
21 public ProblemReferenceBinding(char[] name, int problemId) {
22 this(new char[][] {name}, null, problemId);
25 public ProblemReferenceBinding(char[][] compoundName, Binding original, int problemId) {
26 this.compoundName = compoundName;
27 this.original = original;
28 this.problemId = problemId;
30 public ProblemReferenceBinding(char[] name, Binding original, int problemId) {
31 this(new char[][] {name}, original, problemId);
34 * Answer the problem id associated with the receiver.
35 * NoError if the receiver is a valid binding.
38 public final int problemId() {
43 * @see org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding#shortReadableName()
45 public char[] shortReadableName() {
46 return readableName();