Information given in this form is considered to be in indirect speech, also called indirect discourse.
From the en.wikipedia.org
In other words, you don't have to know what free indirect discourse is to read it, because you already know how to read it.
From the time.com
Davidson himself contributed many details to such a theory, in essays on quotation, indirect discourse, and descriptions of action.
From the en.wikipedia.org
Such pronouns are used to refer to the source of a reported statement or thought in indirect discourse, and can disambiguate sentences that are ambiguous in most other languages.
From the en.wikipedia.org
The accusative and infinitive, more frequently known as the indirect statement in classical Latin, is the usual grammatical construction by means of which one can write in indirect discourse.