org.mklab.nfc.rpn
クラス AbstractProcessor

java.lang.Object
  上位を拡張 org.mklab.nfc.rpn.AbstractProcessor
すべての実装されたインタフェース:
ReversePolishNotationProcessor
直系の既知のサブクラス:
AbstractExpressionProcessor, ValueProcessor

public abstract class AbstractProcessor
extends Object
implements ReversePolishNotationProcessor

逆ポーランド記法を評価(処理)するプロセッサの抽象クラスです。

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

コンストラクタの概要
AbstractProcessor()
           
 
メソッドの概要
 ReversePolishNotationOperand evaluate(ReversePolishNotationOperand operand)
          オペランドを逆ポーランド記法により評価した結果を返します。
 String getFormat()
          数値の出力フォーマットを返します。
 void setFormat(String format)
          数値の出力フォーマットを設定します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース org.mklab.nfc.rpn.ReversePolishNotationProcessor から継承されたメソッド
addOperation, getResult, inverseOperation, multiplyOperation
 

コンストラクタの詳細

AbstractProcessor

public AbstractProcessor()
メソッドの詳細

getFormat

public String getFormat()
インタフェース ReversePolishNotationProcessor の記述:
数値の出力フォーマットを返します。

定義:
インタフェース ReversePolishNotationProcessor 内の getFormat
戻り値:
数値の出力フォーマット
関連項目:
ReversePolishNotationProcessor.getFormat()

setFormat

public void setFormat(String format)
インタフェース ReversePolishNotationProcessor の記述:
数値の出力フォーマットを設定します。

定義:
インタフェース ReversePolishNotationProcessor 内の setFormat
パラメータ:
format - 数値の出力フォーマット
関連項目:
ReversePolishNotationProcessor.setFormat(java.lang.String)

evaluate

public ReversePolishNotationOperand evaluate(ReversePolishNotationOperand operand)
インタフェース ReversePolishNotationProcessor の記述:
オペランドを逆ポーランド記法により評価した結果を返します。

定義:
インタフェース ReversePolishNotationProcessor 内の evaluate
パラメータ:
operand - 対象となるオペランド
戻り値:
評価した結果のオペランド
関連項目:
ReversePolishNotationProcessor.evaluate(org.mklab.nfc.rpn.ReversePolishNotationOperand)