• aaron-o
  • NEWBIE
  • 25 Points
  • Member since 2012

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

I do not see that Apex exposes a class data type. Is this correct? Is there no way to assign a class to a variable in Apex? My research thus far indicates that Apex does not support any sort of metaprogramming, not even string evaluation. It seems most issues surrounding this question are centered on standard/custom object reflection, but I am seeking a way to pass classes around such that `Class myClass = SomeApexClass` can be instantiated with `new myClass(args...)`.

I do not see that Apex exposes a class data type. Is this correct? Is there no way to assign a class to a variable in Apex? My research thus far indicates that Apex does not support any sort of metaprogramming, not even string evaluation. It seems most issues surrounding this question are centered on standard/custom object reflection, but I am seeking a way to pass classes around such that `Class myClass = SomeApexClass` can be instantiated with `new myClass(args...)`.