setprophetcommand.java

来自「RESIN 3.2 最新源码」· Java 代码 · 共 41 行

JAVA
41
字号
package example;import com.caucho.util.L10N;import java.util.logging.Logger;import java.util.logging.Level;import java.io.IOException;/** * */public class SetProphetCommand extends AbstractCommand {  static protected final Logger log =     Logger.getLogger(SetProphetCommand.class.getName());  static final L10N L = new L10N(SetProphetCommand.class);  String _prophet = null;  public void init()  {    super.init();    _prophet = null;  }  void parse(Parser p)    throws IOException  {    _prophet = p.parseToken();    if (_prophet == null)      setError("Expecting prophet name");  }  String act(Magic8Ball magic8ball)  {    magic8ball.setProphet(_prophet);    return "prophet set to `" + magic8ball.getProphet() + "'";  }}

⌨️ 快捷键说明

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