Annotation present on field in toString template

Hello,
is there any way how to check for annotations present on class field in toString template? My usecase is to process field marked some annotation in different/special way than those without annotation.

For example, I would copy existing StringBuffer template and use something like if $member.<isAnnotationPresent(annotation)>. Is something like this possible?
Thanks
Boris

Please sign in to leave a comment.