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 ReferenceBinding original;
16 private int problemId;
18 // NOTE: must only answer the subset of the name related to the problem
20 public ProblemReferenceBinding(char[][] compoundName, int problemId) {
21 this(compoundName, null, problemId);
24 public ProblemReferenceBinding(char[] name, int problemId) {
25 this(new char[][] { name }, null, problemId);
28 public ProblemReferenceBinding(char[][] compoundName,
29 ReferenceBinding original, int problemId) {
30 this.compoundName = compoundName;
31 this.original = original;
32 this.problemId = problemId;
35 public ProblemReferenceBinding(char[] name, ReferenceBinding original,
37 this(new char[][] { name }, original, problemId);
41 * API Answer the problem id associated with the receiver. NoError if the
42 * receiver is a valid binding.
45 public final int problemId() {
50 * @see net.sourceforge.phpdt.internal.compiler.lookup.ReferenceBinding#shortReadableName()
52 public char[] shortReadableName() {
53 return readableName();