|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
java.lang.Objectcom.sanpudo.formula.FunctionAdaptor
public class FunctionAdaptor
ユーザ定義関数を実装する際に拡張するためのアダプタクラス。
| メソッドの概要 | |
|---|---|
String[] |
names()
このクラスで定義されている関数名の配列を返す。 |
int |
numberOfArgs(String name)
指定した名前の関数の引数の個数を返す。 |
boolean |
supports(String name)
このクラスで定義されている関数名であるときtrueを返す。 |
BigDecimal |
value(String name,
BigDecimal[] args)
指定した名前の関数のBigDecimalの関数実行結果を返す。 |
double |
value(String name,
double[] args)
指定した名前の関数のdoubleの関数実行結果を返す。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| メソッドの詳細 |
|---|
public double value(String name,
double[] args)
throws FunctionEvalException
FunctionImplementation 内の valuename - 関数名args - 関数に渡す引数
関数実行時に評価できない状況が発生
FunctionEvalException
public BigDecimal value(String name,
BigDecimal[] args)
throws FunctionEvalException
FunctionImplementation 内の valuename - 関数名args - 関数に渡す引数
関数実行時に評価できない状況が発生
FunctionEvalExceptionpublic String[] names()
FunctionImplementation 内の namespublic int numberOfArgs(String name)
FunctionImplementation 内の numberOfArgsname - 関数名
public boolean supports(String name)
FunctionImplementation 内の supportsname - 関数名
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||