1 11 package org.eclipse.jdt.internal.compiler.lookup; 12 13 public class ProblemReferenceBinding extends ReferenceBinding { 14 private ReferenceBinding closestMatch; 15 private int problemReason; 16 17 19 public ProblemReferenceBinding(char[][] compoundName, ReferenceBinding closestMatch, int problemReason) { 20 this.compoundName = compoundName; 21 this.closestMatch = closestMatch; 22 this.problemReason = problemReason; 23 } 24 public ProblemReferenceBinding(char[] name, ReferenceBinding closestMatch, int problemReason) { 25 this(new char[][] {name}, closestMatch, problemReason); 26 } 27 28 31 public ReferenceBinding closestMatch() { 32 return this.closestMatch; 33 } 34 35 39 public int problemId() { 40 return this.problemReason; 41 } 42 43 46 public char[] shortReadableName() { 47 return readableName(); 48 } 49 50 } 51 | Popular Tags |