0

It is not possible to retrieve the value of a method input parameter.

For annotation the parameters can be read:
MATCH (c:Class)-[:DECLARES]->()-[:ANNOTATED_BY]->(an:Annotation)-[:OF_TYPE]->(:Type{name:"RequestMapping"})
MATCH (an)-[:HAS]->(:Value{name:"value"})-[:CONTAINS]->(v:Value)

What is the best approach to retrieve the value of an input method of a class method?

Nic
  • 3
  • 1

1 Answers1

1

Sadly at this time this is not possible with jQAssisant (it would require to extend the Java bytecode scanner with data flow analysis, which is not trivial).

Dirk Mahler
  • 1,186
  • 1
  • 6
  • 7
  • Has there been any progress? We are using latest 1.12 release and it would be great to have something like (:Method)-[:DECLARES]->(:Parameter{name:"foo}) – lostiniceland Aug 31 '22 at 13:14