Write a program that takes a java source file as an input


Problem

Write a program that takes a Java source file as an input. The program needs to collect the following pieces of information:

i. Collect all the method calls and constructors in each method body.

ii. For each method body, identify the declared variables along with their line numbers.

iii. For each method call (mc), if the receiver of the method call is a variable (i.e., SimpleName, check documentation), determine the methods that are called on this variable prior to mc and located within the same method body.

iv. Collect all exceptions you catch in a method body.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write a program that takes a java source file as an input
Reference No:- TGS03319613

Expected delivery within 24 Hours