What type of figurative language is used:

"A flag wags like a fishhook there in the sky."