How i can get the type of an Assignment Statement using JDT.
I am traversing through a class file using an ASTVisitor, to find the instances of assignment which are having date (Calendar) as the type. Though i am able to find such instances for VaraibleDeclarationStatement using the getType method, the Assignment node doesn’t have such method.
The assignment is decomposed into the LHS and RHS, so check the type of the RHS expression.