1 11 package org.eclipse.jdt.internal.core.search.indexing; 12 13 import org.eclipse.jdt.internal.compiler.SourceElementParser; 14 import org.eclipse.jdt.internal.core.index.Index; 15 16 19 public class InternalSearchDocument { 20 Index index; 21 private String containerRelativePath; 22 SourceElementParser parser; 23 26 public void addIndexEntry(char[] category, char[] key) { 27 if (this.index != null) 28 index.addIndexEntry(category, key, getContainerRelativePath()); 29 } 30 private String getContainerRelativePath() { 31 if (this.containerRelativePath == null) 32 this.containerRelativePath = this.index.containerRelativePath(getPath()); 33 return this.containerRelativePath; 34 } 35 38 public void removeAllIndexEntries() { 39 if (this.index != null) 40 index.remove(getContainerRelativePath()); 41 } 42 45 public String getPath() { 46 return null; } 48 } 49 | Popular Tags |