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