org.eclipse.jdt.internal.compiler.Compiler
Compiler compiler = new Compiler(new NameEnvironmentImpl(unit),
DefaultErrorHandlingPolicies.proceedWithAllProblems(),
settings,requestor,new Default\
ProblemFactory(Locale.getDefault()));
compiler.compile(new ICompilationUnit[] { unit });