Using the name of one thing for that of another with which it is closely associated "to say 'he spent the evening reading Shakespeare' is metonymic because it substitutes the author himself for the author's works" - metonymical
See also: figurative, metonym, metonymically, nonliteral