Object tree navigation language in Java

Posted by lewap on Stack Overflow See other posts from Stack Overflow or by lewap
Published on 2010-03-08T10:05:42Z Indexed on 2010/03/08 11:06 UTC
Read the original article Hit count: 346

In the system which I'm currently developing I often have to navigate an object tree and based on its state and values take actions. In normal Java this results in tedious for loops, if statements etc... Are there alternative ways to achieve tree navigation, similar to XPath for XML? I know there is JXPath and OGNL, but do you know any other libraries for such purpose? Do you know any libraries which generate bytecodes for specific tree navigation expressions to make the processing as fast as Java native fors and ifs?

© Stack Overflow or respective owner

Related posts about tree-navigation

Related posts about object-graph