Empty class
檢查實例是否為空的。 如果輸入是空的,則傳回 true。 空白表示:1.Input 為 Null 或未定義。 2.Input 是 Null 或空字串。 3.輸入為零大小集合。 4.Input 是沒有屬性的物件。
- Extends
建構函式
Empty() | 初始化空 類別 |
屬性
negation | 取得評估工具,這是這個評估工具的否定。 設定評估工具,這是這個評估工具的否定。 |
繼承的屬性
return |
評估表達式所預期的類型。 |
type | 取得評估工具的表達式類型。 |
繼承的方法
try |
評估表達式。 |
validate |
驗證表達式。 |
建構函式詳細資料
Empty()
初始化空 類別
new Empty()
屬性詳細資料
negation
取得評估工具,這是這個評估工具的否定。 設定評估工具,這是這個評估工具的否定。
ExpressionEvaluator negation
屬性值
評估工具,這是這個評估工具的否定。
繼承的屬性詳細資料
returnType
type
繼承的方法的詳細資料
tryEvaluate(Expression, MemoryInterface, Options)
評估表達式。
function tryEvaluate(expression: Expression, state: MemoryInterface, options: Options): ValueWithError
參數
- expression
- Expression
要評估的表達式。
- state
- MemoryInterface
全域狀態資訊。
- options
- Options
評估中使用的選項。
傳回
如果發生錯誤,則為非 Null 的值和錯誤字串。