I want to use the Names from the type instances for a map that saves if a user has or hasn't access to the function that corresponds with the type instance.
Maybe you should take a step back and reconsider using a type and think about using some other construct instead? Class, map, array, list, database are all viable alternatives, depending a bit on your specific needs.
I want to use the Names from the type instances for a map that saves if a user has or hasn't access to the function that corresponds with the type instance.
Use KeyValueStore (or RandomAccessFile.WriteB4XObject). It allows you to save a type instance or any collection that holds other types in a single line of code.
The thing is i can't change this because its embedded in thousands of places in a huge project, if it's not possible to get the variables names out, I will fix another solution ofcourse. But it does not hurt to ask.
I don't know the project, but, in my experience, don't underestimate the power of search and replace, and simple find and manual correct.
I'd make a copy of the project, and then start doing the change, just to get a feel for how big it really is. Usually, when I fear a big rewrite, it's much less work than I thought.