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
-
Iava()
- Initializes the interpreter by creating a
IavaRuntime.
-
Iava(IavaRuntime)
- Initializes the interpreter with the supplied
IavaRuntime.
-
commandLine()
- Provides a line-oriented interface to the
interpreter.
-
interpret(String)
- Interprets the code contained in the supplied script
and returns the result that was returned by the script.
-
interpreterWindow(String)
- Creates an interpreter window with the supplied
title.
-
interpretFile(String)
- Interprets the file with the supplied filename and
returns the result that was returned by the script.
-
main(String[])
- Provides command line access to the Iava
interpreter.
-
syntaxCheck(String)
- Performs a syntax check on the specified script and
throws a parser error, if the code was not correct.
-
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.
Iava
public Iava()
- Initializes the interpreter by creating a
IavaRuntime.
Iava
public Iava(IavaRuntime rt)
- Initializes the interpreter with the supplied
IavaRuntime.
main
public static void main(String args[])
- Provides command line access to the Iava
interpreter.
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.
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.
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.
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.
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.
commandLine
public synchronized void commandLine()
- Provides a line-oriented interface to the
interpreter.
All Packages Class Hierarchy This Package Previous Next Index