public String getSource() { if (introductions.size() == 0 && adviceList.size() == 0) return ""; StringBuffer result = new StringBuffer(); if (aspectName != null) result.append("// aspect " + aspectName.toString() + ";\n\n"); AspectJPrettyPrinter printer = new AspectJPrettyPrinter(); this.accept(printer); return result.append(printer.getResult()).toString(); }