public void compile ( String name , String code ) throws CompilationFailedException { CompilationUnit unit = new CompilationUnit ( configuration ) ; unit . addSource ( new SourceUnit ( name , code , configuration , unit . getClassLoader ( ) , unit . getErrorCollector ( ) ) ) ; unit . compile ( ) ; }
Compiles a string of code .