1 19 20 package org.netbeans.modules.retouche.source.usages; 21 22 import java.io.File ; 23 import java.io.IOException ; 24 import java.net.URL ; 25 import java.util.Map ; 26 import java.util.Set ; 27 import org.netbeans.api.gsf.Index.SearchResult; 28 import org.netbeans.api.retouche.source.ClassIndex; 29 import org.netbeans.api.retouche.source.Source; 30 import org.openide.filesystems.FileObject; 31 32 42 public abstract class ClassIndexImpl { 43 44 45 public static enum UsageType { 46 47 SUPER_CLASS( 0 ), 48 SUPER_INTERFACE( 1 ), 49 FIELD_REFERENCE( 2 ), 50 METHOD_REFERENCE( 3 ), 51 TYPE_REFERENCE (4); 52 53 private int offset; 54 55 UsageType( final int offset) { 56 this.offset = offset; 57 } 58 59 int getOffset () { 60 return this.offset; 61 } 62 } 63 64 65 public static ClassIndexFactory FACTORY; 66 67 public abstract FileObject[] getSourceRoots (); 68 69 public abstract BinaryAnalyser getBinaryAnalyser (); 70 71 public abstract SourceAnalyser getSourceAnalyser (); 72 73 public abstract void setDirty (Source js); 74 75 protected abstract void close () throws IOException ; 76 77 public abstract void gsfSearch(final String primaryField, final String name, final ClassIndex.NameKind kind, 80 final Set <ClassIndex.SearchScope> scope, 81 final Set <SearchResult> result) throws IOException ; 82 public abstract URL getRoot(); 83 public abstract File getSegment(); 84 86 } 87 | Popular Tags |