org.hecl.files
Class FileCmds

java.lang.Object
  extended by org.hecl.Operator
      extended by org.hecl.files.FileCmds
All Implemented Interfaces:
Command

public class FileCmds
extends Operator


Field Summary
static int CD
           
static int CURRENTFILE
           
static int FILESIZE
           
static int FILETOLIST
           
static int LISTTOFILE
           
static int READALL
           
static int SOURCE
           
static int WRITE
           
 
Fields inherited from class org.hecl.Operator
cmdcode, maxargs, minargs
 
Method Summary
static void load(Interp ip)
           
 Thing operate(int cmd, Interp interp, Thing[] argv)
          The operate method dispatches to the actual code.
static void unload(Interp ip)
           
 
Methods inherited from class org.hecl.Operator
cmdCode, load, unload
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CD

public static final int CD
See Also:
Constant Field Values

CURRENTFILE

public static final int CURRENTFILE
See Also:
Constant Field Values

READALL

public static final int READALL
See Also:
Constant Field Values

WRITE

public static final int WRITE
See Also:
Constant Field Values

SOURCE

public static final int SOURCE
See Also:
Constant Field Values

FILESIZE

public static final int FILESIZE
See Also:
Constant Field Values

FILETOLIST

public static final int FILETOLIST
See Also:
Constant Field Values

LISTTOFILE

public static final int LISTTOFILE
See Also:
Constant Field Values
Method Detail

operate

public Thing operate(int cmd,
                     Interp interp,
                     Thing[] argv)
              throws HeclException
Description copied from class: Operator
The operate method dispatches to the actual code.

Specified by:
operate in class Operator
Parameters:
cmd - an int value
interp - an Interp value
argv - a Thing[] value
Returns:
a Thing value, or null when no value has been
Throws:
HeclException - if an error occurs

load

public static void load(Interp ip)
                 throws HeclException
Throws:
HeclException

unload

public static void unload(Interp ip)
                   throws HeclException
Throws:
HeclException