ExprInterpreter
class ExprInterpreter
Undocumented
-
Undocumented
Declaration
Swift
var ast: ExprNode
-
Undocumented
Declaration
Swift
let lookup: (ExprLookupNode, ViewArguments?) throws -> Any?
-
Undocumented
Declaration
Swift
let execFunc: (ExprLookupNode, [Any?], ViewArguments?) throws -> Any?
-
Undocumented
Declaration
Swift
var stack: [Any]
-
Undocumented
Declaration
Swift
let compilableIdentifiers: [String]
-
Undocumented
Declaration
Swift
init( _ ast: ExprNode, _ lookup: @escaping (ExprLookupNode, ViewArguments?) throws -> Any?, _ execFunc: @escaping (ExprLookupNode, [Any?], ViewArguments?) throws -> Any? )
-
Undocumented
Declaration
Swift
func execute(_ args: ViewArguments? = nil) throws -> Any?
-
Undocumented
Declaration
Swift
class func evaluateBoolean(_ x: Any?, nilValue: Bool = false) -> Bool?
-
Undocumented
Declaration
Swift
class func evaluateNumber(_ x: Any?) -> Double
-
Undocumented
Declaration
Swift
class func evaluateNumberArray(_ x: Any?) -> [Double]
-
Undocumented
Declaration
Swift
class func evaluateDateTime(_ x: Any?) -> Date?
-
Undocumented
Declaration
Swift
class func evaluateString(_ x: Any?, defaultValue: String) -> String
-
Undocumented
Declaration
Swift
class func evaluateString(_ x: Any?) -> String?
-
Undocumented
Declaration
Swift
func compare(_ a: Any?, _ b: Any?) -> Bool
-
Undocumented
Declaration
Swift
func compile(_ args: ViewArguments?) throws -> ExprNode
-
Undocumented
Declaration
Swift
func execSingle(_ expr: ExprNode, _ args: ViewArguments?) throws -> Any?