org.hecl.java
Class NullCmd

java.lang.Object
  extended by org.hecl.java.NullCmd
All Implemented Interfaces:
Command

public class NullCmd
extends java.lang.Object
implements Command

The NullCmd class implements the "null" command, returning an ObjectThing containing 'null'.

Version:
1.0
Author:
David N. Welton

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

NullCmd

public NullCmd()
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)