1 19 20 package org.netbeans.modules.java.source.engine; 21 22 import org.netbeans.api.java.source.query.QueryEnvironment; 23 24 import com.sun.tools.javac.code.Symtab; 25 import com.sun.tools.javac.code.Types; 26 import com.sun.tools.javac.jvm.ClassReader; 27 import com.sun.tools.javac.parser.Keywords; 28 import com.sun.tools.javac.util.Context; 29 import com.sun.tools.javac.util.Name; 30 import java.io.IOException ; 31 import javax.tools.JavaFileObject; 32 import org.netbeans.modules.java.source.engine.ASTModel; 33 import org.netbeans.modules.java.source.engine.SourceRewriter; 34 35 public interface EngineEnvironment extends QueryEnvironment { 36 37 43 ASTModel getModel(); 44 45 51 Context getContext(); 52 53 56 void setContext(Context context); 57 58 61 Keywords getKeywords(); 62 63 66 Name.Table getNameTable(); 67 68 71 Symtab getSymbolTable(); 72 73 76 Types getJavacTypes(); 77 78 82 String getOption(String key); 83 84 88 void setOption(String name, String value); 89 90 93 ClassReader getClassReader(); 94 95 98 SourceRewriter getSourceRewriter(JavaFileObject sourceFile) throws IOException ; 99 100 104 long whenCreated(); 105 106 110 ElementMaker getElementMaker(); 111 } 112 | Popular Tags |