Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Help Java Y Extending Java with Yield

Related Tutorials


 
 

Share on Google+Share on Google+

Extending Java with Yield

Advertisement
Yielder library is a library that uses Java 1.5's facility to hook user-defined class

Extending Java with Yield

     

  
Yielder library is a library that uses Java 1.5's facility to hook user-defined class inspectors/transformers into the classloader and rewrites the byte code of a yieldNextCore() method containing calls to yieldReturn(foo) in order to prompt the local variables to members of an anonymous inner class. This inner class is also collections library built on top of Yielder, with tree traversal iterators and map/filter-like functionality that maintains the state of the iterator/generator.

From the programming point of view, the ability of hooking into the classloader and do byte code manipulation on plain java classes enables us an interesting mechanism for prototyping new language features in libraries.

Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: November 19, 2009

Related Tutorials

Discuss: Extending Java with Yield  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:1
sathishkumar
July 1, 2011
java

plz anyone tell diff b/w Yield() and Sleep()
DMCA.com