Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Annotation present on field in toString template

$
0
0

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


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>