Preprocessing Java source with Eclipse

I’m looking for something that can pre-process Java source code while being integrated within an Eclipse project.

That is something that would be called on a preprocessing stage (possibly with error checking) to generate Java source and then have Eclipse automatically compile the source to Java classes as it usually does.

Anyone knows something about this?

plugin? :o

So has anyone ever tried to generate java source with an Eclipse plugin, for example, to generate javax.vecmath were classes differ only by their primitive datatypes?