SyntaxFix
Write A Post
Hire A Developer
Questions
Maybe I'm missing something, but wouldn't this suffice:
if (view instanceof B) { // this view is an instance of B }