(Environment env)
| 74 | } |
| 75 | |
| 76 | void accept(Environment env) throws TemplateException, IOException { |
| 77 | for (int i = 0; i<nestedElements.size(); i++) { |
| 78 | ConditionalBlock cblock = (ConditionalBlock) nestedElements.get(i); |
| 79 | Expression condition = cblock.condition; |
| 80 | if (condition == null || condition.isTrue(env)) { |
| 81 | if (cblock.nestedBlock != null) { |
| 82 | env.visit(cblock.nestedBlock); |
| 83 | } |
| 84 | return; |
| 85 | } |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | public String getCanonicalForm() { |
| 90 | StringBuilder buf = new StringBuilder(); |