private Status executeBlock ( Stmt . Block block , CallStack frame , EnclosingScope scope ) { for ( int i = 0 ; i != block . size ( ) ; ++ i ) { Stmt stmt = block . get ( i ) ; Status r = executeStatement ( stmt , frame , scope ) ; // Now, see whether we are continuing or not if ( r != Status . NEXT ) { return r ; } } return Status . NEXT ; }
Execute a given block of statements starting from the beginning . Control may terminate prematurely in a number of situations . For example when a return or break statement is encountered .