1 /*******************************************************************************
2 * Copyright (c) 2000, 2001, 2002 International Business Machines Corp. and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Common Public License v0.5
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/cpl-v05.html
9 * IBM Corporation - initial API and implementation
10 ******************************************************************************/
11 package net.sourceforge.phpdt.internal.compiler.lookup;
13 public abstract class Binding implements BindingIds, CompilerModifiers, ProblemReasons {
15 * Answer the receiver's binding type from Binding.BindingID.
17 * Note: Do NOT expect this to be used very often... only in switch statements with
18 * more than 2 possible choices.
21 public abstract int bindingType();
23 * Answer true if the receiver is not a problem binding
26 public final boolean isValidBinding() {
27 return problemId() == NoError;
30 * Answer the problem id associated with the receiver.
31 * NoError if the receiver is a valid binding.
34 public int problemId() {
37 /* Answer a printable representation of the receiver.
40 public abstract char[] readableName();