Yes. Self-talk at its finest.
Because it’s not like Hamlet’s been siting around doing nothing. He’s not kickin’ back playing video games, lying around staring at the ceiling or even reading. At almost every moment, he is trying to work out what to do and the best way to do it. He’s staged a play. He’s killed someone in trying to kill his target.
To me, it looks like Hamlet has been trying to get this revenge in a careful measured way for two thirds of the play and then ends up overly excited and kills the wrong guy. At which point, it’s not his sleeping that is preventing him from killing Claudius, it’s opportunity.
I’m sure Claudius has guarded both himself and Hamlet heavily. There is no way for him to do his father’s will under the current circumstances.
But of course that’s not what he says to himself. No, no…to himself, everything is his fault. And not due to circumstances at all, but some mortal character flaw.
And thousands of literary critics followed and wailed about his tragic flaw.