jp.co.justsystem.choco.model.function
インタフェース Function

既知の実装クラスの一覧:
FunctionArg0, FunctionArg1, FunctionArg2, FunctionArg3, FunctionArgVariable

public interface Function

関数インターフェース


フィールドの概要
static int TYPE_DELAY
          遅延評価関数を表します
static int TYPE_NONE
          通常の関数を表します
static int TYPE_VOLATILE
          揮発性関数を表します
 
メソッドの概要
 void call(FuncArg arg, ExprValue result)
          関数呼び出し
 int getMaxArgc()
          最大引数個数を返します。
 int getMinArgc()
          最小引数個数を返します。
 java.lang.String getName()
          関数名を返します。
 int getType()
          この関数の種類を返します。
 

フィールドの詳細

TYPE_NONE

public static final int TYPE_NONE
通常の関数を表します

TYPE_VOLATILE

public static final int TYPE_VOLATILE
揮発性関数を表します

TYPE_DELAY

public static final int TYPE_DELAY
遅延評価関数を表します
メソッドの詳細

call

public void call(FuncArg arg,
                 ExprValue result)
          throws jp.co.justsystem.choco.model.ValueException
関数呼び出し
パラメータ:
arg - 関数引数
result - 関数評価結果格納領域
例外:
ValueException -  

getName

public java.lang.String getName()
関数名を返します。
戻り値:
関数名

getMinArgc

public int getMinArgc()
最小引数個数を返します。
戻り値:
引数個数(>=0)

getMaxArgc

public int getMaxArgc()
最大引数個数を返します。
戻り値:
引数個数(<=30)、可変引数の場合は -1 を返します。

getType

public int getType()
この関数の種類を返します。
戻り値:
TYPE_xxx