Java-Swul

Stratego -- Strategies for Program Transformation

Introduction

Java-Swul is a domain-specific language (DSL) for creating Java SWING user interfaces. The Java-Swul language is embedded in Java. In this fasion it provides a concrete syntax for creating SWING objects.

The Java-Swul package enables you to transform Java code with embedded Java-Swul code to Java code. In this tranformation the Java-Swul is assimilated into the surrounding Java. Giving you the power of Java with an easy and straightforward way to create user interfaces.

The Swul part of the name comes from SWING userinterface language and combined with Java makes Java-Swul. It was first contrived when developing the MetaBorg method.

Usage

  • Some JavaSwulExamples are viewable online.
  • A real application called JavaJuke, a mp3 jukebox with a Java-Swul programmed interface and ant-build.
  • Read the the Java-Swul article?.

Java-Swul can be installed from source or from a package.

  • Source can be found in our Subversion server
  • Automaticly generated packages will be available shortly
  • A Nix-channel might also be in the realm of possibilities

Dependencies

Java-Swul requires the following packages:

Building from source

After a checkout from our Subversion server:

  • ./bootstrap
When building Java-Swul from source the following configure parameters might be needed:
  • ./configure
    • --prefix=<dir>
    • --with-strategoxt=<dir>
    • --with-java-front=<dir>
    • --with-aterm=<dir>
    • --with-sdf=<dir>
After which a normal build and install can be done:
  • make
  • make install

Related software

-- ReneDeGroot - 3 Jan 2005