1 52 53 package freemarker.core; 54 55 59 final class BreakInstruction extends TemplateElement { 60 61 void accept(Environment env) { 62 throw new Break(); 63 } 64 65 public String getCanonicalForm() { 66 return "<#break/>"; 67 } 68 69 public String getDescription() { 70 return "break" + " [" + getStartLocation() + "]"; 71 } 72 73 static class Break extends RuntimeException {} 74 } 75 76 77 | Popular Tags |