⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 abstractcommand.java

📁 RESIN 3.2 最新源码
💻 JAVA
字号:
package example;import com.caucho.util.L10N;import java.util.logging.Logger;import java.util.logging.Level;import java.io.IOException;/** * Abstract base class for commands. */abstract public class AbstractCommand {  static protected final Logger log =     Logger.getLogger(AbstractCommand.class.getName());  static final L10N L = new L10N(AbstractCommand.class);  private String _error = null;  public void init()  {    _error = null;  }  /**   * If a parse error is encountered then the implementing class calls   * setError().   */  abstract void parse(Parser p) throws IOException;  /**   * Perform the command.   *   * @return a String result to return to the client, or null if the    * command does not produce a result.   * If an error occurs then the implementing class calls setError().   */   abstract String act(Magic8Ball magic8ball);  public boolean isError()  {    return _error != null;  }  public String getError()  {    return _error;  }  protected void setError(String error)  {    _error = error;  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -