RE: JESS: Is there a better Jess equivalent for pack.age.MyClass.class?

2011-08-10 Thread Friedman-Hill, Ernest
There's a method "findClass()" in jess.Rete which finds Class objects. It leverages the data from the Jess "import" command so that class names don't have to be fully qualified. So you could say ((engine) findClass MyClass) I love it when a question has a clear, unambiguous, helpful answer! :)

JESS: Is there a better Jess equivalent for pack.age.MyClass.class?

2011-08-10 Thread Wolfgang Laun
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