01: /*
02: * Command.java
03: *
04: * Interface for Commands that can be added to the Tcl Interpreter.
05: *
06: * Copyright (c) 1997 Sun Microsystems, Inc.
07: *
08: * See the file "license.terms" for information on usage and
09: * redistribution of this file, and for a DISCLAIMER OF ALL
10: * WARRANTIES.
11: *
12: * RCS: @(#) $Id: Command.java,v 1.3 1999/08/05 03:43:27 mo Exp $
13: */
14:
15: package tcl.lang;
16:
17: import java.util.*;
18:
19: /**
20: * The Command interface specifies the method that a new Tcl command
21: * must implement. See the createCommand method of the Interp class
22: * to see how to add a new command to an interperter.
23: */
24:
25: public interface Command {
26: abstract public void cmdProc( // The method cmdProc is called by interp.
27: Interp interp, // The interpreter for setting result etc.
28: TclObject[] objv) // The argument list for the command.
29: throws TclException; // Tcl exceptions are thown for Tcl errors.
30: }
|