Toyota Motor Corp. said Monday it will shut all of its plants in Japan Tuesday after one of its domestic suppliers suffered a computer system glitch caused by a cyberattack.