All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class NET.shudo.moba.place.Command

java.lang.Object
   |
   +----NET.shudo.moba.place.Command

public class Command
extends Object
コマンドシェルのコマンドを定義するクラス。
"Method コマンド名(String[])" という形で定義する。
public メソッドで定義するとコマンドを短縮可能になる。 protected メソッドで定義するとコマンドは短縮できない。

See Also:
CommandShell, CommandServer

Variable Index

 o commandTable
コマンドシェルが受け付けるコマンドの表。
文字列 (String) を key に、処理 (Method) を返す。
 o commandVector

Constructor Index

 o Command(CommandShell, PrintStream)

Method Index

 o error(String)
エラーメッセージを出力
 o fork(String[])
 o get(String)
与えられた文字列に対応するコマンドを返す。
 o halt(String[])
 o help(String[])
 o list(String[])
 o move(String[])
 o name(String[])
 o property(String[])
 o quit(String[])
 o read(String[])
 o resume(String[])
 o run(String[])
 o start(String[])
 o stop(String[])
 o stopall(String[])
 o suspend(String[])
 o write(String[])

Variables

 o commandTable
 protected static Dictionary commandTable
コマンドシェルが受け付けるコマンドの表。
文字列 (String) を key に、処理 (Method) を返す。

 o commandVector
 protected static Vector commandVector

Constructors

 o Command
 public Command(CommandShell sh,
                PrintStream out)

Methods

 o get
 public static Method get(String cmd)
与えられた文字列に対応するコマンドを返す。

 o error
 protected void error(String msg)
エラーメッセージを出力

 o list
 public void list(String args[])
 o write
 public void write(String args[])
 o read
 public void read(String args[])
 o stopall
 public void stopall(String args[])
 o suspend
 public void suspend(String args[])
 o resume
 public void resume(String args[])
 o stop
 public void stop(String args[])
 o start
 public void start(String args[])
 o move
 public void move(String args[])
 o fork
 public void fork(String args[])
 o name
 public void name(String args[])
 o property
 public void property(String args[])
 o run
 public void run(String args[])
 o halt
 public void halt(String args[])
 o quit
 public void quit(String args[])
 o help
 public void help(String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index