protected final Statement wrapBlock ( Statement statement ) { BlockStatement stmt = new BlockStatement ( ) ; stmt . addStatement ( createInterruptStatement ( ) ) ; stmt . addStatement ( statement ) ; return stmt ; }
Takes a statement and wraps it into a block statement which first element is the interruption check statement .