public void load ( File sourceFile ) throws CompilationFailedException { reset ( ) ; try { classLoader . parseClass ( sourceFile ) ; } catch ( IOException e ) { throw new AstInspectorException ( "cannot read source file" , e ) ; } catch ( AstSuccessfullyCaptured e ) { indexAstNodes ( ) ; return ; } throw new AstInspectorException ( "internal error" ) ; }
Compiles the source text in the specified file up to the configured compile phase and stores the resulting AST for subsequent inspection .