Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Advanced-java] Dynamic Expression in Java


  • From: mike@xxxxxxxxxxxxxxxx (Michael Shoemaker)
  • Subject: [Advanced-java] Dynamic Expression in Java
  • Date: Mon, 18 Mar 2002 06:16:56 -0800 (PST)

Anyone know of a way to dynamically create an
expression within java and have it executed. 

For example

Object obj1 = // some object
Object obj2 = // some object
String strComp = "==";

Now I need to dynamically generate the conditional.

if (str1 strComp str2) {
   // Do something useful
}

Thanks in advance. 


=====
Mike Shoemaker
Mike@xxxxxxxxxxxxxxxx
Visit my website 
http://www.PavolDemitra.com

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/