public void reset ( ) { if ( varValuesTab == null ) { varValuesTab = new String [ mtp . varTabCnt ] ; } else { for ( int varNo = 0 ; varNo < mtp . varTabCnt ; varNo ++ ) { varValuesTab [ varNo ] = null ; } } if ( blockDynTab == null ) { blockDynTab = new BlockDynTabRec [ mtp . blockTabCnt ] ; } for ( int blockNo = 0 ; blockNo < mtp . blockTabCnt ; blockNo ++ ) { BlockDynTabRec bdtr = blockDynTab [ blockNo ] ; if ( bdtr == null ) { bdtr = new BlockDynTabRec ( ) ; blockDynTab [ blockNo ] = bdtr ; } bdtr . instances = 0 ; bdtr . firstBlockInstNo = - 1 ; bdtr . lastBlockInstNo = - 1 ; } blockInstTabCnt = 0 ; }
Resets the MiniTemplator object to the initial state . All variable values are cleared and all added block instances are deleted . This method can be used to produce another HTML page with the same template . It is faster than creating another MiniTemplator object because the template does not have to be read and parsed again .