[Biojava-dev] filter walker
Matthew Pocock
matthew_pocock at yahoo.co.uk
Fri Jul 11 15:03:57 EDT 2003
Hi,
I have checked in a new package - org.biojava.bio.seq.filter - that
contains some interfaces for things that walk over filter expressions.
It uses some bytecode magic so that you can write realy simple visitor
classes and they get shown all the filters they are interested in. Also,
the same magic lets us optionaly have visitors that return data from
their visiting methds, so we could trawl across a filter tree and
prety-print it by returning strings, or transform one tree into another
by returning filters from the visit methods.
There is no package.html yet - if someone feels inspired, I won't stop you.
The best source of docs & examples are the unit tests - how XP of me. I
guess these could be pulled out, dusted off, and put into bjia or the
package docs as propper examples.
Matthew
--
BioJava Consulting LTD - Support and training for BioJava
http://www.biojava.co.uk
More information about the biojava-dev
mailing list