|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jawk.Awk
public class Awk
Entry point into the parsing, analysis, and execution/compilation of a Jawk script.
The overall process to execute a Jawk script is as follows:
By default a minimal set of extensions are automatically included. Please refer to the EXTENSION_PREFIX static field contents for an up-to-date list. As of the initial release of the extension system, the prefix defines the following extensions:
Note: Compilation requires the installation of The Apache Byte Code Engineering Library (BCEL). Please see the AwkCompilerImpl Javadocs or the project webpage for more details.
AVM,
AwkCompilerImpl| Constructor Summary | |
|---|---|
Awk(java.lang.String[] args,
java.io.InputStream is,
java.io.PrintStream os,
java.io.PrintStream es)
Class constructor to support the JSR 223 scripting interface already provided by Java SE 6. |
|
| Method Summary | |
|---|---|
static int |
invoke(java.lang.String[] args)
An entry point to Jawk that provides the exit code of the script if interpreted or an compiler error status if compiled. |
static void |
main(java.lang.String[] args)
The entry point to Jawk for the VM. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Awk(java.lang.String[] args,
java.io.InputStream is,
java.io.PrintStream os,
java.io.PrintStream es)
throws java.lang.Exception
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.
java.lang.Exception - enables exceptions to propogate to the callee.| Method Detail |
|---|
public static void main(java.lang.String[] args)
throws java.io.IOException,
java.lang.ClassNotFoundException
The main method is a simple call to the invoke method. The current implementation is as follows:
System.exit(invoke(args));
args - Command line arguments to the VM.
java.io.IOException - upon an IO error.
java.lang.ClassNotFoundException - if compilation is requested,
but no compilation implementation class is found.
public static int invoke(java.lang.String[] args)
throws java.io.IOException,
java.lang.ClassNotFoundException
args - Command line arguments to the VM.
java.io.IOException - upon an IO error.
java.lang.ClassNotFoundException - if compilation is requested,
but no compilation implementation class is found.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||