type
Method
Method models a function with a formal parameter list and return value (or Void if no return).
methods
call |
Convenience for |
---|---|
callList |
Convenience for |
callOn |
Convenience for |
func |
Get the function body of this method. |
paramDef |
Evaluate the parameter default using reflection. |
params |
Get the parameters of the method. |
returns |
Type returned by the method or sys::Void if no return value. |
Slot Details
call
callList
callOn
func
paramDef
src
Obj? paramDef(Param param, Obj? instance := null)
Evaluate the parameter default using reflection. If this method is static or a constructor, then instance should be null. Raise an exception if the parameter default cannot be evaluated independently (such as using an expression with previous parameters).