Classifying an expression as ironical does not depend on purpose or context.

Classifying Metaphor by Its Terms and Common Feature: Concordance, Opposition and Inclusion