weaponready / alvor

Automatically exported from code.google.com/p/alvor
Eclipse Public License 1.0
0 stars 0 forks source link

Enhancement: Analyze SQL as a constructor argument #24

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. OurSQLRunner runner = new OurSQLRunner(sqlCommand);
2. How to configure this in hotspots?

What is the expected output? What do you see instead?
Only methods are allowed so far.

What version of the product are you using? On what operating system?
None.

Original issue reported on code.google.com by barulhe...@gmail.com on 17 Sep 2014 at 6:32

GoogleCodeExporter commented 8 years ago
You should find a way to register hotspots for constructor arguments, and to 
include its use in this method: 
com.googlecode.alvor.crawler.StringCollector.processNodeForPatterns

Original comment by barulhe...@gmail.com on 22 Sep 2014 at 1:53

GoogleCodeExporter commented 8 years ago
I have implemented this, by configuring instantiation calls as methods with an 
empty name, and by changing the source code to handle instantiation calls just 
as regular methods.
A patch is attached, as well as the resulting plugin file. You should replace 
the jar file in Eclipse's plugins folder.

Original comment by barulhe...@gmail.com on 24 Sep 2014 at 2:21

Attachments: