jp.sourceforge.rpn_computer.command
クラス AddCommand

java.lang.Object
  上位を拡張 jp.sourceforge.rpn_computer.command.AddCommand
すべての実装されたインタフェース:
RpnCommand

public final class AddCommand
extends java.lang.Object
implements RpnCommand

スタックから2つの値をポップし、加算し、その結果をスタックにプッシュします。

作成者:
uguu@users.sourceforge.jp

コンストラクタの概要
AddCommand()
           
 
メソッドの概要
 void execute(RpnContext context)
          

実行する処理を実装してください。

 java.lang.String toString()
          
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

AddCommand

public AddCommand()
メソッドの詳細

execute

public void execute(RpnContext context)

実行する処理を実装してください。

定義:
インタフェース RpnCommand 内の execute
パラメータ:
context - 計算コンテキスト。

toString

public java.lang.String toString()

オーバーライド:
クラス java.lang.Object 内の toString


Copyright © 2006 null. All Rights Reserved.