Closed

Java project using JDT. Analyse the Java source and find how many times a method is called

You must have experience in Java, Eclipse, JDT

The project needs to be done in 4 hours. If you don't know JDT you won't be able to finish it in time

Budget is $20. No more. If you bid more you will be ignored

You will be paid a few days after submission. If you can't agree, don't bid

Method Call Counter (Java assignment help)

analyse Java source code so that you can count all the method calls in

[url removed, login to view] ([url removed, login to view]) (Java Development Kit). This zip file contains 7471 java files, 371k lines of code. Among all these java files,

for each class, count the method calls it received;

for each method, count the number of times this method is called;

For instance, when you see the following statement,

[url removed, login to view]();

The String class receives one more method call, and the toUpperCase() method is used one more time. The object 'aString' can be of any name, and you should not count the occurrence of variable names. You need to utilize the parsing result to infer that it is of type String. To avoid name conflict, you should use the complete package path in your program and in your report. For example, String should be written as "[url removed, login to view]", toUpperCase should be "[url removed, login to view]()".

Method

You need to parse the source code so that you can extract the relevant information. You can choose one of the existing Java parsers. One choice is

[url removed, login to view] JDTthat can generate an AST (abstract syntax tree). It won't suffice to manipilate the source code directly using tools such as regular expression. One reason is that there are commnets, which can be very complex and can contain code snippets. In addition, there are a few other cases you need to consider:

String[] toppings = {"cheese", "pepperoni", "black olives"};

int arrayLength = [url removed, login to view];

In the above example, length is an atrtibute instead of a method. So we will not count that as a method call.

String toppings = "cheese, pepperoni, black olives";

String[] tokens= [url removed, login to view]().split(",");

In the above example, toppings, i.e., the String class, received one method call. [url removed, login to view](), which is also a String, received another method call.

Submit one zipped file that contains the following files:

One pdf file of one page length, describing briefly the method you used, the challenges you encounter, and a table that lists the top 20 classes and top 20 methods. Use the following format to list these classes and methods.

class1 classcount1; method1 methodcount1

class2 classcount2; method2 methodcount2

...

class20 classcount20; method20 methodcount20

To partially verify your result, note that the most frequently used class is the String class. One thing you need to take care of is polymorphic methods. Please treat each polymorhic method as a distinct one (our preferred solution). For instance, there are many append methods, the counting of each append method in StringBuffer are given below.

[url removed, login to view](String) <> 1480

[url removed, login to view](char) <> 705

[url removed, login to view](int) <> 112

[url removed, login to view](Object) <> 38

[url removed, login to view](char[]intint) <> 32

[url removed, login to view](StringBuffer) <> 8

[url removed, login to view](long) <> 3

[url removed, login to view](char[]) <> 3

[url removed, login to view](float) <> 3

[url removed, login to view](CharSequenceintint) <> 3

[url removed, login to view](CharSequence) <> 2

[url removed, login to view](double) <> 1

[url removed, login to view](boolean) <> 1

Your source code. You can use a programming language of your choice, but the source code to be analysed is JDK, which is in Java. We will check code similarity, and plagiarism will not be tolerated.

Skills: Java

See more: bank atm source code project java using gui, school management project using netbeans java, mini project using swing java, online quiz project using source code, bounce project using opengl source code, small project using swing java, atm project using swing java, software write mq4, software write chip epson, useful software write book, software write web specs, mysql database project using jms java code, free software write user guide, software write edid, free software write company profile, college project using core java, software write websites idea, software write book images, software write books, software write protection, free software write book, software write book, hospital management open source project using php, free source code pharmacy project using vb6, java source code net banking project using jspstruts

About the Employer:
( 0 reviews ) Cape Town, South Africa

Project ID: #12242714

8 freelancers are bidding on average R1078 for this job

JinDongZhe

We are a team of excellent programmers and engineers. We have completed over 250 jobs up to now, and are ever-growing at rapid speed. Our team include many experts with following skills. - C/C++/C#/Java Programming More

R1031 ZAR in 3 days
(61 Reviews)
6.9
R1088 ZAR in 3 days
(76 Reviews)
6.3
R1088 ZAR in 3 days
(26 Reviews)
4.6
R1088 ZAR in 3 days
(2 Reviews)
1.3
shuaibullah

Hello Sir, I have been in this industry for 5 years and such jobs are my daily practice. This is my first time on this site and hence you can see that I do not have any ratings/testimonials to show you. My name is Shua More

R1088 ZAR in 3 days
(0 Reviews)
0.0
jannaetpand

We have 1000+ employees in our company. So we can do all kind of IT project in any languages and all stream. We have 3 years+ experience employees for all streams especially C PROGRAMMING, C++,C#, , HTML,HTML5,WORDPRE More

R1061 ZAR in 3 days
(0 Reviews)
0.0
koresoft

Dear Prospect Hiring Manager. Thank you for giving me a chance to bid on your project. I am a serious bidder here and i have already worked on a similar project before and can deliver as u have mentioned I have c More

R1088 ZAR in 3 days
(1 Review)
0.0
ikevin8me

Hi, I'm a software architect and Java expert. Your project is easy for me. Please place your order and I'll deliver in a few days. Thanks and cheers! Kevin.

R1088 ZAR in 3 days
(0 Reviews)
0.0