01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 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: public class ProblemFieldBinding extends FieldBinding {
13: private int problemId;
14: public FieldBinding closestMatch;
15:
16: // NOTE: must only answer the subset of the name related to the problem
17:
18: public ProblemFieldBinding(ReferenceBinding declaringClass,
19: char[] name, int problemId) {
20: this (null, declaringClass, name, problemId);
21: }
22:
23: public ProblemFieldBinding(FieldBinding closestMatch,
24: ReferenceBinding declaringClass, char[] name, int problemId) {
25: this .closestMatch = closestMatch;
26: this .declaringClass = declaringClass;
27: this .name = name;
28: this .problemId = problemId;
29: }
30:
31: /* API
32: * Answer the problem id associated with the receiver.
33: * NoError if the receiver is a valid binding.
34: */
35:
36: public final int problemId() {
37: return problemId;
38: }
39: }
|