How to invoke a Method with tasty-query #348
-
When I have found a Method with tasty-query, how do I invoke it? With Java you use Java Reflection, with Scala 2 you use Scala2 Reflection How to invoke a Method with Scala 3 tasty-query? |
Beta Was this translation helpful? Give feedback.
Answered by
bishabosha
Sep 9, 2023
Replies: 1 comment 3 replies
-
tasty-query does not have any way to invoke methods. It only supports analysing the structure and semantics of definitions. To invoke definitions, you would use Java reflection, and perhaps you could create a lookup method that converts a tasty-query Symbol to a java reflect Method. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
bishabosha
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tasty-query does not have any way to invoke methods. It only supports analysing the structure and semantics of definitions.
To invoke definitions, you would use Java reflection, and perhaps you could create a lookup method that converts a tasty-query Symbol to a java reflect Method.