equal
deleted
inserted
replaced
119 private Names names; |
119 private Names names; |
120 private Types types; |
120 private Types types; |
121 |
121 |
122 // called reflectively from Trees.instance(CompilationTask task) |
122 // called reflectively from Trees.instance(CompilationTask task) |
123 public static JavacTrees instance(JavaCompiler.CompilationTask task) { |
123 public static JavacTrees instance(JavaCompiler.CompilationTask task) { |
124 if (!(task instanceof JavacTaskImpl)) |
124 if (!(task instanceof BasicJavacTask)) |
125 throw new IllegalArgumentException(); |
125 throw new IllegalArgumentException(); |
126 return instance(((JavacTaskImpl)task).getContext()); |
126 return instance(((BasicJavacTask)task).getContext()); |
127 } |
127 } |
128 |
128 |
129 // called reflectively from Trees.instance(ProcessingEnvironment env) |
129 // called reflectively from Trees.instance(ProcessingEnvironment env) |
130 public static JavacTrees instance(ProcessingEnvironment env) { |
130 public static JavacTrees instance(ProcessingEnvironment env) { |
131 if (!(env instanceof JavacProcessingEnvironment)) |
131 if (!(env instanceof JavacProcessingEnvironment)) |