インタフェース
jp.sourceforge.expression_computer.Command の使用

Command を使用しているパッケージ
jp.sourceforge.expression_computer 数式の解析、計算を行う機能を持ちます。 
jp.sourceforge.expression_computer.command 数式を構成するコマンドを格納しています。 
 

jp.sourceforge.expression_computer での Command の使用
 

Command を返す jp.sourceforge.expression_computer のメソッド
 Command[] CommandList.toCommandArray()
           格納されているコマンドを配列で返します。
 Command CommandList.getCommand(int index)
           コマンドを返します。
 Command CommandList.setCommand(int index, Command command)
           指定した位置のコマンドを指定したコマンドで置き換えます。
 

Command 型のパラメータを持つ jp.sourceforge.expression_computer のメソッド
 boolean CommandList.addCommand(Command command)
           コマンドを追加します。
 Command CommandList.setCommand(int index, Command command)
           指定した位置のコマンドを指定したコマンドで置き換えます。
 void CommandList.addCommand(int index, Command command)
           指定した位置にコマンドを挿入します。
 

jp.sourceforge.expression_computer.command での Command の使用
 

Command を実装している jp.sourceforge.expression_computer.command のクラス
 class AddCommand
           スタックから2つの値をポップし、加算し、その結果をスタックにプッシュします。
 class AndCommand
           スタックから2つの値をポップし、論理積を行い、その結果をスタックにプッシュします。
 class ArithmeticRightShiftCommand
           スタックから2つの値をポップし、算術右シフトし、その結果をスタックにプッシュします。
 class BitReversingCommand
           スタックから1つの値をポップし、ビット反転し、その結果をスタックにプッシュします。
 class ConditionalAndCommand
           スタックから2つの値をポップし、条件論理積を行い、その結果をスタックにプッシュします。
 class ConditionalOrCommand
           スタックから2つの値をポップし、条件論理和を行い、その結果をスタックにプッシュします。
 class ConditionCommand
           スタックから3つの値をポップし、第1項が0以外の場合は第2項を、第1項が0の場合は第3項をスタックにプッシュします。
 class DivideCommand
           スタックから2つの値をポップし、除算し、その結果をスタックにプッシュします。
 class EqualCommand
           スタックから2つの値をポップし、比較します。
 class ExclusiveOrCommand
           スタックから2つの値をポップし、排他的論理和を行い、その結果をスタックにプッシュします。
 class FunctionCallCommand
           関数を呼び出し、その結果をスタックにプッシュします。
 class GreaterThanCommand
           スタックから2つの値をポップし、比較します。
 class GreaterThanEqualCommand
           スタックから2つの値をポップし、比較します。
 class InclusiveOrCommand
           スタックから2つの値をポップし、論理和を行い、その結果をスタックにプッシュします。
 class LeftShiftCommand
           スタックから2つの値をポップし、左シフトし、その結果をスタックにプッシュします。
 class LessThanCommand
           スタックから2つの値をポップし、比較します。
 class LessThanEqualCommand
           スタックから2つの値をポップし、比較します。
 class LogicalRightShiftCommand
           スタックから2つの値をポップし、論理右シフトし、その結果をスタックにプッシュします。
 class MultiplyCommand
           スタックから2つの値をポップし、乗算し、その結果をスタックにプッシュします。
 class NotCommand
           スタックから1つの値をポップし、否定し、その結果をスタックにプッシュします。
 class NotEqualCommand
           スタックから2つの値をポップし、比較します。
 class PostDecrementCommand
           変数を後置インクリメントし、その結果をスタックにプッシュします。
 class PostIncrementCommand
           変数を後置インクリメントし、その結果をスタックにプッシュします。
 class PreDecrementCommand
           変数を前置デクリメントし、その結果をスタックにプッシュします。
 class PreIncrementCommand
           変数を前置インクリメントし、その結果をスタックにプッシュします。
 class PushStackCommand
           スタックに値をプッシュします。
 class SetVariableCommand
           スタックから1つの値をポップし、その値を変数に設定します。
 class SignReversingCommand
           スタックから1つの値をポップし、符号の反転を行い、その結果をスタックにプッシュします。
 class SubtractCommand
           スタックから2つの値をポップし、減算を行い、その結果をスタックにプッシュします。
 class SurplusCommand
           スタックから2つの値をポップし、剰余算を行い、その結果をスタックにプッシュします。
 



Copyright © 2006 SourceForge.jp. All Rights Reserved.