1 19 20 package org.netbeans.api.java.source.query; 21 22 import org.netbeans.api.java.source.ElementUtilities; 23 import org.netbeans.api.java.source.query.CommentHandler; 24 import org.netbeans.api.java.source.transform.UndoList; 25 import com.sun.source.tree.CompilationUnitTree; 26 import com.sun.source.tree.Tree; 27 import com.sun.source.util.Trees; 28 import javax.lang.model.util.Elements; 29 import javax.lang.model.util.Types; 30 import javax.tools.JavaFileManager; 31 import java.io.IOException ; 32 import java.io.PrintWriter ; 33 import org.netbeans.modules.java.source.engine.TreeMakerInt; 34 35 43 public interface QueryEnvironment { 44 45 50 Trees getTrees(); 51 52 56 CommentHandler getCommentHandler(); 57 58 62 TreeMakerInt getTreeMaker(); 63 64 68 UndoList getUndoList(); 69 70 75 Tree getRootNode(); 76 77 81 Types getTypes(); 82 83 88 Elements getElements(); 89 90 94 ElementUtilities getElementUtilities(); 95 96 99 JavaFileManager getJavaFileManager(); 100 101 106 String toSource(CompilationUnitTree unit) throws IOException ; 107 108 118 void setResult(Object result, String title); 119 120 125 void setStatusMessage(String message); 126 127 132 void setErrorMessage(String message, String title); 133 134 138 PrintWriter getOutputWriter(String title); 139 } 140 | Popular Tags |