org.hecl.java
Class HeclJavaCmd
java.lang.Object
org.hecl.java.HeclJavaCmd
- All Implemented Interfaces:
- Command
public class HeclJavaCmd
- extends java.lang.Object
- implements Command
The HeclJavaCmd
class implements the "java" command,
which can be used to access, instantiate and call methods of Java
classes.
- Version:
- 1.0
- Author:
- David N. Welton
Method Summary |
Thing |
cmdCode(Interp interp,
Thing[] argv)
The cmdCode method takes an interpreter and an array of
Things, performs some calculations, and returns a Thing
representing the computed value, or null . |
static void |
load(Interp interp)
|
static void |
unload(Interp interp)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HeclJavaCmd
public HeclJavaCmd()
cmdCode
public Thing cmdCode(Interp interp,
Thing[] argv)
throws HeclException
- Description copied from interface:
Command
- The
cmdCode
method takes an interpreter and an array of
Things, performs some calculations, and returns a Thing
representing the computed value, or null
.
- Specified by:
cmdCode
in interface Command
- Parameters:
interp
- an Interp
valueargv
- a Thing[]
value
- Returns:
- A
Thing
representing the computed value, or
null
.
- Throws:
HeclException
- if an error occurs
load
public static void load(Interp interp)
throws HeclException
- Throws:
HeclException
unload
public static void unload(Interp interp)