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