次の方法で共有


ComparisonEvaluator class

比較演算子。 比較演算子は、比較が false の場合、またはエラーがある場合に false を返します。 これにより、エラーによるブール式のショートサーキットが防止されます。

Extends

コンストラクター

ComparisonEvaluator(string, (arg0: any[]) => boolean, ValidateExpressionDelegate, VerifyExpression)

ComparisonEvaluator クラスの新しいインスタンスを初期化します。

プロパティ

negation

この評価の否定であるエバリュエーターを取得します。 この評価の否定であるエバリュエーターを設定します。

継承されたプロパティ

returnType

式を評価することによって必要な型。

type

エバリュエーターの式の型を取得します。

継承されたメソッド

tryEvaluate(Expression, MemoryInterface, Options)

式を評価します。

validateExpression(Expression)

式を検証します。

コンストラクターの詳細

ComparisonEvaluator(string, (arg0: any[]) => boolean, ValidateExpressionDelegate, VerifyExpression)

ComparisonEvaluator クラスの新しいインスタンスを初期化します。

new ComparisonEvaluator(type: string, func: (arg0: any[]) => boolean, validator: ValidateExpressionDelegate, verify?: VerifyExpression)

パラメーター

type

string

組み込み関数の名前。

func

(arg0: any[]) => boolean

比較関数は、オブジェクトのリストを受け取り、ブール値を返します。

validator
ValidateExpressionDelegate

(xref:adaptive-expressions。入力引数の ValidateExpressionDelegate) です。

verify
VerifyExpression

随意。 各子 結果を確認する VerifyExpression 関数です。

プロパティの詳細

negation

この評価の否定であるエバリュエーターを取得します。 この評価の否定であるエバリュエーターを設定します。

ExpressionEvaluator negation

プロパティ値

この評価の否定であるエバリュエーター。

継承されたプロパティの詳細

returnType

式を評価することによって必要な型。

returnType: ReturnType

プロパティ値

expressionEvaluator.returnType から継承

type

エバリュエーターの式の型を取得します。

type: string

プロパティ値

string

ExpressionEvaluator.type から継承

継承済みメソッドの詳細

tryEvaluate(Expression, MemoryInterface, Options)

式を評価します。

function tryEvaluate(expression: Expression, state: MemoryInterface, options: Options): ValueWithError

パラメーター

expression
Expression

評価する式。

state
MemoryInterface

グローバル状態情報。

options
Options

評価で使用されるオプション。

戻り値

エラーが発生した場合に null 以外の値とエラー文字列。

expressionEvaluator.tryEvaluate から継承

validateExpression(Expression)

式を検証します。

function validateExpression(expression: Expression)

パラメーター

expression
Expression

検証する式。

expressionEvaluator.validateExpression から継承