Java

Eclipse JET - Write Code that Writes Code

The Eclipse Modeling Framework (EMF) project contains two very powerful tools for generating source code: JET (Java Emitter Templates) and JMerge (Java Merge). With JET you can use a JSP-like syntax (actually a subset of the JSP syntax) that makes it easy to write templates that express the code you want to generate. JET is a generic template engine that can be used to generate SQL, XML, Java source code and other output from templates. In this this tutorial and yesterdays sequel you will learn how to create JET templates, how to use the JET Nature and JET Builder to automatically translate templates into Java classes, and how to use these classes to generate source code. You will also learn how to write plug-ins that use the classes in the JET package to generate Java source code.

Average rating
(0 votes)

Similar entries