I am making usage of
/* @var $var Type */
really often for NetBeans can then autocomplete methods and stuff in code. Still I think its a very useful feature but sometimes I got objects of classes extending one more class and implementing multiple interfaces. Or I even got a transitive class hierarchy.
I don't know a way to tell NetBeans that it shall be using autocomplete for all these interfaces and upper-layer parent classes.
I would like to do so for of course every of these interfaces / classes got dedicated methods (which are defined somewhere in case of interfaces...)
I tried something like this:
/* @var $var TypeA|\TypeB|\TypeC */
because I saw NetBeans will generate a similar documentation for methods returning different class objects due a switch/case. But this seems to work only for the @return notation.
I also tried
/* @var $var TypeA|TypeB */
Also not working...
NetBeans will autocomplete the last told Type in this case but not a combination of both/all told classes.
How can I document so my autocomplete works as desired (a summary of methods of all classes /interfaces I listed)?
regards!