|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.mklab.nfc.rpn.AbstractProcessor
org.mklab.tool.control.system.rpn.ValueProcessor
public class ValueProcessor
逆ポーランド記法を数値に関して評価(処理)するクラスです。
コンストラクタの概要 | |
---|---|
ValueProcessor()
|
メソッドの概要 | |
---|---|
ReversePolishNotationOperand |
addOperation(ReversePolishNotationOperand left,
ReversePolishNotationOperand right)
2個のオペランドの和を返します。 |
String |
getResult(ReversePolishNotationOperand operand)
オペランドを評価した結果を返します。 |
ReversePolishNotationOperand |
inverseOperation(ReversePolishNotationOperand operand)
オペランドの逆数を返します。 |
ReversePolishNotationOperand |
multiplyOperation(ReversePolishNotationOperand left,
ReversePolishNotationOperand right)
2個のオペランドの積を返します。 |
クラス org.mklab.nfc.rpn.AbstractProcessor から継承されたメソッド |
---|
evaluate, getFormat, setFormat |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public ValueProcessor()
メソッドの詳細 |
---|
public String getResult(ReversePolishNotationOperand operand)
ReversePolishNotationProcessor
の記述:
operand
- 対象となるオペランド
ReversePolishNotationProcessor.getResult(org.mklab.nfc.rpn.ReversePolishNotationOperand)
public ReversePolishNotationOperand multiplyOperation(ReversePolishNotationOperand left, ReversePolishNotationOperand right)
ReversePolishNotationProcessor
の記述:
left
- オペランドright
- オペランド
ReversePolishNotationProcessor.multiplyOperation(org.mklab.nfc.rpn.ReversePolishNotationOperand, org.mklab.nfc.rpn.ReversePolishNotationOperand)
public ReversePolishNotationOperand addOperation(ReversePolishNotationOperand left, ReversePolishNotationOperand right)
ReversePolishNotationProcessor
の記述:
left
- 左オペランドright
- 左オペランド
ReversePolishNotationProcessor.addOperation(org.mklab.nfc.rpn.ReversePolishNotationOperand, org.mklab.nfc.rpn.ReversePolishNotationOperand)
public ReversePolishNotationOperand inverseOperation(ReversePolishNotationOperand operand)
ReversePolishNotationProcessor
の記述:
operand
- オペランド
ReversePolishNotationProcessor.inverseOperation(org.mklab.nfc.rpn.ReversePolishNotationOperand)
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |