org.mklab.nfc.rpn
クラス InverseOperator

java.lang.Object
  上位を拡張 org.mklab.nfc.rpn.AbstractOperator
      上位を拡張 org.mklab.nfc.rpn.InverseOperator
すべての実装されたインタフェース:
ReversePolishNotationOperator, ReversePolishNotationSymbol, SingleOperandOperator

public class InverseOperator
extends AbstractOperator
implements SingleOperandOperator

逆ポーランド記法の逆数(Inverse)演算子を表すクラスです。

バージョン:
$Revision: 1.5 $, 2007/11/13
作成者:
Anan

メソッドの概要
static InverseOperator getInstance()
          逆数(Inverse)演算子を返します。
 String getStringOfSymbol()
          シンボルの文字列を返します。
 ReversePolishNotationOperand operate(ReversePolishNotationProcessor processor, ReversePolishNotationOperand operand)
          オペランドを評価した結果を返します。
 
クラス org.mklab.nfc.rpn.AbstractOperator から継承されたメソッド
getOperator, isReversePolishNotationOperator
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

メソッドの詳細

getInstance

public static InverseOperator getInstance()
逆数(Inverse)演算子を返します。

戻り値:
逆数(Inverse)演算子

operate

public ReversePolishNotationOperand operate(ReversePolishNotationProcessor processor,
                                            ReversePolishNotationOperand operand)
インタフェース SingleOperandOperator の記述:
オペランドを評価した結果を返します。

定義:
インタフェース SingleOperandOperator 内の operate
パラメータ:
processor - プロセッサー
operand - オペランド
戻り値:
オペランドを評価した結果
関連項目:
SingleOperandOperator.operate(org.mklab.nfc.rpn.ReversePolishNotationProcessor, org.mklab.nfc.rpn.ReversePolishNotationOperand)

getStringOfSymbol

public String getStringOfSymbol()
インタフェース ReversePolishNotationSymbol の記述:
シンボルの文字列を返します。

定義:
インタフェース ReversePolishNotationSymbol 内の getStringOfSymbol
戻り値:
シンボルの文字列
関連項目:
ReversePolishNotationSymbol.getStringOfSymbol()