org.hecl.java
Class HeclJavaCmd

java.lang.Object
  extended by 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

Constructor Summary
HeclJavaCmd()
           
 
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
 

Constructor Detail

HeclJavaCmd

public HeclJavaCmd()
Method Detail

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 value
argv - 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)