commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hans Gilde <hgilde-comm...@earthlink.net>
Subject RE: JEXL and instanceof
Date Wed, 27 Oct 2004 03:40:23 GMT
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:andy@marathon-man.com] 
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: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message