You could define a class with an instanceof method and use it via the JEXL
context.

public Boolean isInstanceOf(Object o, Class clazz) {
        return class.isInstance(object);
}

-----Original Message-----
From: Andy Depue [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 26, 2004 2:57 PM
To: Jakarta Commons Users List
Subject: JEXL and instanceof

Does the JEXL expression language have any way to determine if a particular 
variable is an instance of a particular class?  For example:
  var instanceof SomeClass

Thanks,
  Andy


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to