Пример #1
0
 @Override
 public String closeBlock() throws ParseException {
   if (blocks.isEmpty())
     throw new ParseException(cb.getTemplateClass(), currentLine(), "No open block found");
   IBlockHandler bh = blocks.pop();
   return null == bh ? "" : bh.closeBlock();
 }
Пример #2
0
 @Override
 public void openBlock(IBlockHandler bh) {
   bh.openBlock();
   blocks.push(bh);
 }