function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Reflection in apex. is something like it?

Sometimes getting type of variable, names of their funcs, e.t.c. is necessary in code. Hove this mechanism realized in apex?


Or,at least, simple analog of java getClass()


You can get at information about sobjects and their fields using the describe calls.  As far as I'm aware there's nothing in Apex that allows you to find out meta information about classes etc.


Can you tell us a bit more about what you are trying to do?


Sadly news=( Yes, i tried to get info about classes, not sobjects.