I'm not sure what the question is, or what you mean by "one shot command", but that syntax (minus the extra parentheses) will let you create templates from Java classes. Are you asking whether there's a way to have Jess create a template for all the classes in a package using a single command? No. Java doesn't even provide a way to list all the classes in a package, since it's a rather open-ended concept.

On Oct 2, 2009, at 5:18 AM, Marco Zappatore wrote:


Dear Jess users,
the command
(deftemplate myClass ((declare (from class mypackage.myclass)))
can be used as a one shot command in order to create deftemplates for each
of a java class in a given package?

Thanks in advance
 Marco Zappatore


---------------------------------------------------------
Ernest Friedman-Hill
Informatics & Decision Sciences          Phone: (925) 294-2154
Sandia National Labs
PO Box 969, MS 9012                            [email protected]
Livermore, CA 94550                             http://www.jessrules.com





--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [email protected]'
in the BODY of a message to [email protected], NOT to the list
(use your own address!) List problems? Notify [email protected].
--------------------------------------------------------------------

Reply via email to