The function get-method-restrictions returns a multifield value containing information about the restrictions for the specified method using the following format:
<minimum-number-of-arguments> <maximum-number-of-arguments> (can be -1 for wildcards) <number-of-restrictions> <multifield-index-of-first-restriction-info> . . . <multifield-index-of-nth-restriction-info> <first-restriction-query> (TRUE or FALSE) <first-restriction-class-count> <first-restriction-first-class> . . . <first-restriction-nth-class> . . . <mth-restriction-class-count> <mth-restriction-first-class> . . . <mth-restriction-nth-class>
Syntax
(get-method-restrictions <generic-function-name> <method-index>)
Example
CLIPS> (clear) CLIPS> (defmethod foo 50 ((?a INTEGER SYMBOL) (?b (= 1 1)) $?c)) CLIPS> (get-method-restrictions foo 50) (2 -1 3 7 11 13 FALSE 2 INTEGER SYMBOL TRUE 0 FALSE 0) CLIPS>