Is it possible to get all instances of a class by entering this class’s name as a string?
Something like this?
var instances = Reflection.findClass("com.someone.MyClass").getInstances();
Any feedback is appreciated. Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, there’s nothing like that available. If you hook into the debugging API you may be able to do it, but not when running “normally”.