public static Trees instance ( CompilationTask task ) { String taskClassName = task . getClass ( ) . getName ( ) ; if ( ! taskClassName . equals ( "com.sun.tools.javac.api.JavacTaskImpl" ) && ! taskClassName . equals ( "com.sun.tools.javac.api.BasicJavacTask" ) ) throw new IllegalArgumentException ( ) ; return getJavacTrees ( CompilationTask . class , task ) ; }
Returns a Trees object for a given CompilationTask .