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 import net.sourceforge.phpdt.core.compiler.CharOperation;
15 public class ProblemBinding extends Binding {
17 public ReferenceBinding searchType;
18 private int problemId;
19 // NOTE: must only answer the subset of the name related to the problem
21 public ProblemBinding(char[][] compoundName, int problemId) {
22 this(CharOperation.concatWith(compoundName, '.'), problemId);
24 // NOTE: must only answer the subset of the name related to the problem
26 public ProblemBinding(char[][] compoundName, ReferenceBinding searchType, int problemId) {
27 this(CharOperation.concatWith(compoundName, '.'), searchType, problemId);
29 ProblemBinding(char[] name, int problemId) {
31 this.problemId = problemId;
33 ProblemBinding(char[] name, ReferenceBinding searchType, int problemId) {
34 this(name, problemId);
35 this.searchType = searchType;
38 * Answer the receiver's binding type from Binding.BindingID.
41 public final int bindingType() {
42 return VARIABLE | TYPE;
45 * Answer the problem id associated with the receiver.
46 * NoError if the receiver is a valid binding.
49 public final int problemId() {
52 public char[] readableName() {