You'll need to create a custom literal implementation, and select that. This should give you an ok example:
You can give it members and a constructor to denote the fields of the annotation.
Thanks for all the help, both - apologies for cross-posting!
Sorted now - see the stackoverflow post above for the 2 possible code solutions.