1 52 53 package freemarker.core; 54 55 import java.io.IOException ; 56 import freemarker.template.*; 57 58 final class RecoveryBlock extends TemplateElement { 59 60 RecoveryBlock(TemplateElement block) { 61 this.nestedBlock = block; 62 } 63 64 void accept(Environment env) throws TemplateException, IOException 65 { 66 env.visit(nestedBlock); 67 } 68 69 public String getCanonicalForm() { 70 StringBuffer buf = new StringBuffer ("<#recover>"); 71 if (nestedBlock != null) { 72 buf.append(nestedBlock.getCanonicalForm()); 73 } 74 buf.append("/#recover"); 75 return buf.toString(); 76 } 77 78 public String getDescription() { 79 return "recover block"; 80 } 81 } 82 | Popular Tags |