JESS: Is there a better Jess equivalent for pack.age.MyClass.class?
"Wolfgang Laun" <[email protected]> Wed, 10 Aug 2011 13:27:26 +0200
| Newsgroups | gmane.comp.java.jess |
|---|---|
| Message-ID | <CANaj1Lcgh-MiBwfxp9QkrdyAcAzSmk0KHR-e-F7b02pp30qC4A@mail.gmail.com> |
If there's an object of a class around, one can do (?obj getClass). Given only the class name, the only thing I can think of is (call Class forName pack.age.MyClass) which can be wrapped into a deffunction but still needs the full class name as an argument. There's no static field "class" in a class, and therefore (call MyClass class) cannot work (after an import of MyClass). Is there any better way? -W