sam.rules
Class JavaProgram

java.lang.Object
  |
  +--sam.rules.JavaProgram

public class JavaProgram
extends java.lang.Object

Wrapper for java command-lines


Method Summary
 int execute()
          Runs the application in the current JVM.
 java.lang.String toString()
          Makes a command-line like representation of this application and parameters.
 java.lang.String toSwitch()
          Makes a command-line like representation of this application and parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

execute

public int execute()
            throws SyntaxError
Runs the application in the current JVM.

Returns:
exit code of the application, or 0 if none.
SyntaxError

toString

public java.lang.String toString()
Makes a command-line like representation of this application and parameters.

Overrides:
toString in class java.lang.Object

toSwitch

public java.lang.String toSwitch()
Makes a command-line like representation of this application and parameters.