Geoffrey Shauger - CS 510 OSS - Summer 2009


User Guide

Using JaLoopA requires a basic understanding of invoking Java from the command line. After downloading the JAR file JaLoopA is executed in the following manner:

java JaLoopA <input file path> <output file dir> <numcores>

Currently JaLoopA only supports Java source code that meets a particular pattern. Attempting to run JaLoopA against code that does not meet this pattern will result in output that will neither nor compile nor execute. Some of these constraints are a reflection of JaLoopA's lack of maturity as an application and in the future a wider range of input will be accepted.

As of the the beta the following criteria must be met to be compatible with JaLoopA:
  • Use of brackets in strict compliance with Sun's recommended formatting. The opening bracket for classes, methods and loops must be on the same line as the decleration.

    public class foo {
    
    public void bar() {
    if(foo) {
    for(int x = 0; x < 10; x++) {
  • Closing brackets must be on a line by themselves
  • The for-loop termination condition must have a static value for the non loop counter value. In the following example x is the loop counter and 10 is the static value.
    for(int x = 0; x < 10; x++) {
    
  • The body of the for-loop must not reference values declared outside of the for-loop other than the loop counter. This is a limitation of the beta and will not exist in future versions
  • Only one for-loop can exist in the class. This is also a limitation of the beta.