Fantom

 

const class

sys::Method

sys::Obj
  sys::Slot
    sys::Method

Method models a function with a formal parameter list and return value (or Void if no return).

Slots

callSource

Obj? call(Obj? a := null, Obj? b := null, Obj? c := null, Obj? d := null, Obj? e := null, Obj? f := null, Obj? g := null, Obj? h := null)

Convenience for func.call

callListSource

Obj? callList(Obj?[]? args)

Convenience for func.callList

callOnSource

Obj? callOn(Obj? target, Obj?[]? args)

Convenience for func.callOn

funcSource

Func func()

Get the function body of this method.

paramsSource

Param[] params()

Get the parameters of the method. Convenience for func.params.

returnsSource

Type returns()

Type returned by the method or sys::Void if no return value. Convenience for func.returns.