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