View Javadoc

1   package net.sf.tomp.xtcl;
2   
3   /***
4    * The interface for a command - enables the command to be executed within a
5    * context.
6    * 
7    * @author tomp
8    */
9   public interface Command {
10      //public void setOut(PrintStream o);
11  
12      /***
13       * DOCUMENT ME!
14       * 
15       * @param c Context in which the command is executed
16       * @return int errorCode (0 = OK)
17       */
18      int execute(Context c) throws Exception;
19  }
20  
21  /*
22   * The contents of this file are subject to the Mozilla Public License Version
23   * 1.1 (the "License"); you may not use this file except in compliance with the
24   * License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
25   * Software distributed under the License is distributed on an "AS IS" basis,
26   * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
27   * the specific language governing rights and limitations under the License. The
28   * Original Code is: all this file. The Initial Developer of the Original Code
29   * is: Tomas Pitner, Masaryk University in Brno, Czech Republic. Contributor(s):
30   */