Stream of consciousness
WordNet
noun
(1) The continuous flow of ideas and feelings that constitute an individual's conscious experience
(2) A literary genre that reveals a character's thoughts and feeling as they develop by means of a long soliloquy