< prev index next >

test/langtools/tools/javac/processing/model/TestSymtabItems.java

Print this page

 30  *          jdk.compiler/com.sun.tools.javac.main
 31  *          jdk.compiler/com.sun.tools.javac.model
 32  *          jdk.compiler/com.sun.tools.javac.util
 33  */
 34 
 35 import java.lang.reflect.Field;
 36 
 37 import javax.lang.model.element.Element;
 38 import javax.lang.model.element.ExecutableElement;
 39 import javax.lang.model.element.ModuleElement;
 40 import javax.lang.model.element.PackageElement;
 41 import javax.lang.model.element.TypeElement;
 42 import javax.lang.model.element.TypeParameterElement;
 43 import javax.lang.model.element.UnknownElementException;
 44 import javax.lang.model.element.VariableElement;
 45 import javax.lang.model.type.TypeMirror;
 46 import javax.lang.model.type.UnknownTypeException;
 47 import javax.lang.model.util.*;
 48 
 49 import com.sun.tools.javac.code.Symbol.ClassSymbol;


 50 import com.sun.tools.javac.code.Symtab;
 51 import com.sun.tools.javac.file.JavacFileManager;
 52 import com.sun.tools.javac.main.JavaCompiler;
 53 import com.sun.tools.javac.model.JavacTypes;
 54 import com.sun.tools.javac.util.Context;
 55 
 56 /**
 57  * Scan javac Symtab looking for TypeMirrors and Elements, and ensure that
 58  * no exceptions are thrown when used with javax.lang.model visitors.
 59  *
 60  */
 61 public class TestSymtabItems {
 62     public static void main(String... args) throws Exception {
 63         new TestSymtabItems().run();
 64     }
 65 
 66     void run() throws Exception {
 67         Context c = new Context();
 68         JavacFileManager.preRegister(c);
 69         Symtab syms = Symtab.instance(c);

 30  *          jdk.compiler/com.sun.tools.javac.main
 31  *          jdk.compiler/com.sun.tools.javac.model
 32  *          jdk.compiler/com.sun.tools.javac.util
 33  */
 34 
 35 import java.lang.reflect.Field;
 36 
 37 import javax.lang.model.element.Element;
 38 import javax.lang.model.element.ExecutableElement;
 39 import javax.lang.model.element.ModuleElement;
 40 import javax.lang.model.element.PackageElement;
 41 import javax.lang.model.element.TypeElement;
 42 import javax.lang.model.element.TypeParameterElement;
 43 import javax.lang.model.element.UnknownElementException;
 44 import javax.lang.model.element.VariableElement;
 45 import javax.lang.model.type.TypeMirror;
 46 import javax.lang.model.type.UnknownTypeException;
 47 import javax.lang.model.util.*;
 48 
 49 import com.sun.tools.javac.code.Symbol.ClassSymbol;
 50 import com.sun.tools.javac.code.Symbol.Completer;
 51 import com.sun.tools.javac.code.Symbol.ModuleSymbol;
 52 import com.sun.tools.javac.code.Symtab;
 53 import com.sun.tools.javac.file.JavacFileManager;
 54 import com.sun.tools.javac.main.JavaCompiler;
 55 import com.sun.tools.javac.model.JavacTypes;
 56 import com.sun.tools.javac.util.Context;
 57 
 58 /**
 59  * Scan javac Symtab looking for TypeMirrors and Elements, and ensure that
 60  * no exceptions are thrown when used with javax.lang.model visitors.
 61  *
 62  */
 63 public class TestSymtabItems {
 64     public static void main(String... args) throws Exception {
 65         new TestSymtabItems().run();
 66     }
 67 
 68     void run() throws Exception {
 69         Context c = new Context();
 70         JavacFileManager.preRegister(c);
 71         Symtab syms = Symtab.instance(c);
< prev index next >