All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Iava.Iava

java.lang.Object
   |
   +----Iava.Iava

public class Iava
extends Object
The class Iava represents the Iava interpreter. It can be instantiated with or without an externally provided runtime object and provides methods for interpreting Strings and files containing Iava code. It furthermore provides a main entry point for invoking the Iava command line interpreter or a Iava interpreter window.

See Also:
IavaRuntime

Constructor Index

 o Iava()
Initializes the interpreter by creating a IavaRuntime.
 o Iava(IavaRuntime)
Initializes the interpreter with the supplied IavaRuntime.

Method Index

 o commandLine()
Provides a line-oriented interface to the interpreter.
 o interpret(String)
Interprets the code contained in the supplied script and returns the result that was returned by the script.
 o interpreterWindow(String)
Creates an interpreter window with the supplied title.
 o interpretFile(String)
Interprets the file with the supplied filename and returns the result that was returned by the script.
 o main(String[])
Provides command line access to the Iava interpreter.
 o syntaxCheck(String)
Performs a syntax check on the specified script and throws a parser error, if the code was not correct.
 o syntaxCheckFile(String)
Performs a syntax check on the file with the supplied filename and throws a parser error, if the code in the file was not correct or a file not found exception if the file could not be read.

Constructors

 o Iava
 public Iava()
Initializes the interpreter by creating a IavaRuntime.

 o Iava
 public Iava(IavaRuntime rt)
Initializes the interpreter with the supplied IavaRuntime.

Methods

 o main
 public static void main(String args[])
Provides command line access to the Iava interpreter.

 o interpreterWindow
 public Frame interpreterWindow(String title)
Creates an interpreter window with the supplied title. Using the returned reference, your application can incorporate the frame any way you want and has control over it.

 o interpretFile
 public synchronized Object interpretFile(String fileName)
Interprets the file with the supplied filename and returns the result that was returned by the script. If the script itself does not return a result, this method returns null.

 o syntaxCheckFile
 public synchronized void syntaxCheckFile(String fileName) throws Throwable
Performs a syntax check on the file with the supplied filename and throws a parser error, if the code in the file was not correct or a file not found exception if the file could not be read.

 o syntaxCheck
 public synchronized void syntaxCheck(String script) throws Throwable
Performs a syntax check on the specified script and throws a parser error, if the code was not correct.

 o interpret
 public synchronized Object interpret(String script)
Interprets the code contained in the supplied script and returns the result that was returned by the script. If the script itself does not return a result, this method returns null.

 o commandLine
 public synchronized void commandLine()
Provides a line-oriented interface to the interpreter.


All Packages  Class Hierarchy  This Package  Previous  Next  Index