Jess Information

Jess Home
Jess 7 Features
Download Now!
Online Demo

Documentation
FAQ
Manual
Mailing List
Jess Wiki

More information Related Web Sites
User Contributions
JSR94 Info
Developer's Log
About This Site

JESS ®, the Rule Engine for the JavaTM Platform

Jess Wiki: Syntax Tips

SyntaxTips go here

Here are StringManipulationTips for JESS.

Here are ArrayManipulationTips for JESS.

Here is a useful, J2EE-compliant function to determine if a given external address reference is an instance of a particular class.

; NOTE: this function can throw ClassNotFoundException
(deffunction is-instanceof (?j_obj ?className)
    "Return true if the object is an instance of the specified class"
    (if (not (external-addressp ?j_obj)) then (return FALSE))
    (bind ?class
        (((call java.lang.Thread currentThread)
            getContextClassLoader) loadClass ?className))
    (if (?class isInstance ?j_obj) then
        (return TRUE))
    (return FALSE))

CategoryTips


Front Page | Sandbox | Recent Changes | Powered by Friki | Last Edited: 10 August 2006