예제 #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);
 }