Annotation present on field in toString template

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?

Please sign in to leave a comment.