Home > Back-end >  Implementation approach, genuflect is begged search method and the method of calling relationship be
Implementation approach, genuflect is begged search method and the method of calling relationship be

Time:10-14

Requirements are as follows:
Front desk page through a class name (include the complete package name), and a method of the class name, search in the whole project which class which method calls the method, and calls the location of the class name and method name to return to the front desk, is similar to the function of the open call hierarchy, eclipse

CodePudding user response:

With a regular match, search for all files,

CodePudding user response:

reference 1st floor stacksoverflow response:
, with regular matching search all files,


First of all thank you for your answer,

Regular considered, but the use of regular premise should first read the code, published to the server only class file, don't know how to read the code, the card at this point,

CodePudding user response:

Search for a answer, see if I can help you,
https://stackoverflow.com/questions/20589962/how-can-i-get-the-complete-call-hierarchy-of-a-java-source-code

CodePudding user response:

reference stacksoverflow reply: 3/f
search for an answer, see if I can help you,
https://stackoverflow.com/questions/20589962/how-can-i-get-the-complete-call-hierarchy-of-a-java-source-code


Research, like and I don't demand,

CodePudding user response:

reference 4 floor lj19900605 response:
Quote: reference stacksoverflow reply: 3/f

Search for a answer, see if I can help you,
https://stackoverflow.com/questions/20589962/how-can-i-get-the-complete-call-hierarchy-of-a-java-source-code


Research, like and I don't demand,

I understand that this kind of thing can only do the static analysis, find a parser is not reality, perhaps the class was compiled, and then the regular match can be a little hope,
Wait and see if there are any player can give a good idea,

CodePudding user response:

reference 5 floor stacksoverflow reply:
Quote: refer to 4th floor lj19900605 response:

Quote: refer to the third floor stacksoverflow response:

Search for a answer, see if I can help you,
https://stackoverflow.com/questions/20589962/how-can-i-get-the-complete-call-hierarchy-of-a-java-source-code


Research, like and I don't demand,

I understand that this kind of thing can only do the static analysis, find a parser is not reality, perhaps the class was compiled, and then the regular match can be a little hope,
Wait and see if there are any player can give a good idea,


Well, thank you very much for help,

CodePudding user response:

Using the ASM can be solved
  • Related