Class Main

java.lang.Object
org.sentrysoftware.jawk.Main

public class Main extends Object
Entry point into the parsing, analysis, and execution/compilation of a Jawk script. This entry point is used when Jawk is executed as a stand-alone application. If you want to use Jawk as a library, please use .
Author:
Danny Daglas
  • Constructor Details

    • Main

      public Main(String[] args, InputStream is, PrintStream os, PrintStream es) throws Exception
      Class constructor to support the JSR 223 scripting interface already provided by Java SE 6.
      Parameters:
      args - String arguments from the command-line.
      is - The input stream to use as stdin.
      os - The output stream to use as stdout.
      es - The output stream to use as stderr.
      Throws:
      Exception - enables exceptions to propagate to the callee.
  • Method Details

    • main

      public static void main(String[] args)
      The entry point to Jawk for the VM.

      The main method is a simple call to the invoke method. The current implementation is basically as follows:

       System.exit(invoke(args));
       
      Parameters:
      args - Command line arguments to the VM.