1 19 20 package org.netbeans.modules.java.hints.spi; 21 22 import com.sun.source.util.TreePath; 23 import java.util.List ; 24 import java.util.Set ; 25 import org.netbeans.api.java.source.CompilationInfo; 26 import org.netbeans.spi.editor.hints.Fix; 27 28 34 public interface ErrorRule<T> extends Rule { 36 38 public Set <String > getCodes(); 39 40 42 public List <Fix> run(CompilationInfo compilationInfo, String diagnosticKey, int offset, TreePath treePath, Data<T> data); 43 44 public void cancel(); 45 46 public static final class Data<T> { 47 private T o; 48 public synchronized T getData() { 49 return o; 50 } 51 52 public synchronized void setData(T o) { 53 this.o = o; 54 } 55 } 56 } 57 | Popular Tags |