private void checkBlockDefinitionsComplete ( ) throws MiniTemplator . TemplateSyntaxException { for ( int blockNo = 0 ; blockNo < blockTabCnt ; blockNo ++ ) { BlockTabRec btr = blockTab [ blockNo ] ; if ( btr . definitionIsOpen ) { throw new MiniTemplator . TemplateSyntaxException ( "Missing $EndBlock command in template for block \"" + btr . blockName + "\"." ) ; } } if ( currentNestingLevel != 0 ) { throw new MiniTemplator . TemplateSyntaxException ( "Block nesting level error at end of template." ) ; } }
Checks that all block definitions are closed .