this.debugLines = debugLines;
this.debugVars = debugVars;
// Compile static import declarations.
for (Iterator it = this.compilationUnit.importDeclarations.iterator(); it.hasNext();) {
ImportDeclaration id = (ImportDeclaration) it.next();
class UCE extends RuntimeException { final CompileException ce; UCE(CompileException ce) { this.ce = ce; } }
try {
id.accept(new ImportVisitor() {
// CHECKSTYLE(LineLengthCheck):OFF
public void visitSingleTypeImportDeclaration(SingleTypeImportDeclaration stid) {}
public void visitTypeImportOnDemandDeclaration(TypeImportOnDemandDeclaration tiodd) {}
public void visitSingleStaticImportDeclaration(SingleStaticImportDeclaration ssid) { try { UnitCompiler.this.import2(ssid); } catch (CompileException e) { throw new UCE(e); } }
public void visitStaticImportOnDemandDeclaration(StaticImportOnDemandDeclaration siodd) { try { UnitCompiler.this.import2(siodd); } catch (CompileException e) { throw new UCE(e); } }