Addo Well-Known Member Licensed User Longtime User May 1, 2020 #1 Can Reflector library fetch an object properties names? I know that i can use Reflector library to setfields to some properties. But can i use it to read an object properties names ?
Can Reflector library fetch an object properties names? I know that i can use Reflector library to setfields to some properties. But can i use it to read an object properties names ?
LucaMs Expert Licensed User Longtime User May 1, 2020 #2 Unfortunately, now I don't have time enough, but you can read these and try (I will do it ): https://www.b4x.com/android/forum/t...th-reflector-or-javaobject.113034/post-704990 https://stackoverflow.com/questions/2989560/how-to-get-the-fields-in-an-object-via-reflection Upvote 0
Unfortunately, now I don't have time enough, but you can read these and try (I will do it ): https://www.b4x.com/android/forum/t...th-reflector-or-javaobject.113034/post-704990 https://stackoverflow.com/questions/2989560/how-to-get-the-fields-in-an-object-via-reflection
LucaMs Expert Licensed User Longtime User May 1, 2020 #3 LucaMs said: Unfortunately, now I don't have time enough Click to expand... I found out I have time; in fact I "discovered" that today is May 1st and therefore shops are closed! I make a good coffee and then read. Upvote 0
LucaMs said: Unfortunately, now I don't have time enough Click to expand... I found out I have time; in fact I "discovered" that today is May 1st and therefore shops are closed! I make a good coffee and then read.
LucaMs Expert Licensed User Longtime User May 1, 2020 #4 https://docs.oracle.com/javase/tutorial/reflect/member/index.html Although it seems strange to me, on that page I seem to understand that you can get method names but not property names (of which you can get type and value)... Upvote 0
https://docs.oracle.com/javase/tutorial/reflect/member/index.html Although it seems strange to me, on that page I seem to understand that you can get method names but not property names (of which you can get type and value)...
stevel05 Expert Licensed User Longtime User May 1, 2020 #5 This is an old project, I can't find the original post. But you should be able to extract the code you need from here. Attachments ClassSpy.zip 8.4 KB · Views: 305 Upvote 0
This is an old project, I can't find the original post. But you should be able to extract the code you need from here.