1 11 package org.eclipse.jdt.internal.core; 12 13 17 public class ResolvedBinaryMethod extends BinaryMethod { 18 19 private String uniqueKey; 20 21 24 public ResolvedBinaryMethod(JavaElement parent, String name, String [] parameterTypes, String uniqueKey) { 25 super(parent, name, parameterTypes); 26 this.uniqueKey = uniqueKey; 27 } 28 31 public String getKey() { 32 return this.uniqueKey; 33 } 34 37 public boolean isResolved() { 38 return true; 39 } 40 41 44 protected void toStringInfo(int tab, StringBuffer buffer, Object info, boolean showResolvedInfo) { 45 super.toStringInfo(tab, buffer, info, showResolvedInfo); 46 if (showResolvedInfo) { 47 buffer.append(" {key="); buffer.append(this.uniqueKey); 49 buffer.append("}"); } 51 } 52 53 public JavaElement unresolved() { 54 SourceRefElement handle = new BinaryMethod(this.parent, this.name, this.parameterTypes); 55 handle.occurrenceCount = this.occurrenceCount; 56 return handle; 57 } 58 } 59 | Popular Tags |