|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.mklab.nfc.rpn.AbstractOperator
org.mklab.nfc.rpn.AddOperator
public class AddOperator
逆ポーランド記法の和(add)演算子を表すクラスです。
| メソッドの概要 | |
|---|---|
static AddOperator |
getInstance()
和(add)演算子を返します。 |
String |
getStringOfSymbol()
シンボルの文字列を返します。 |
ReversePolishNotationOperand |
operate(ReversePolishNotationProcessor processor,
ReversePolishNotationOperand left,
ReversePolishNotationOperand right)
オペランドを評価した結果を返します。 |
| クラス org.mklab.nfc.rpn.AbstractOperator から継承されたメソッド |
|---|
getOperator, isReversePolishNotationOperator |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| メソッドの詳細 |
|---|
public static AddOperator getInstance()
public String getStringOfSymbol()
ReversePolishNotationSymbol の記述:
ReversePolishNotationSymbol 内の getStringOfSymbolReversePolishNotationSymbol.getStringOfSymbol()
public ReversePolishNotationOperand operate(ReversePolishNotationProcessor processor,
ReversePolishNotationOperand left,
ReversePolishNotationOperand right)
DoubleOperandOperator の記述:
DoubleOperandOperator 内の operateprocessor - プロセッサーleft - 左オペランドright - 右オペランド
DoubleOperandOperator.operate(org.mklab.nfc.rpn.ReversePolishNotationProcessor,
org.mklab.nfc.rpn.ReversePolishNotationOperand,
org.mklab.nfc.rpn.ReversePolishNotationOperand)
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||