Class Function

Object
  extended by Function

public class Function
extends Object

Function objects created with the Function constructor are evaluated each time they are used. This is less efficient than declaring a function and calling it within your code, because declared functions are compiled.


Method Summary
 any apply(Object thisArgument, any[] argArray)
          Allows you to apply a method of another object in the context of a different object (the calling object).
 any call(Object thisArgument, any... args)
          Allows you to call (execute) a method of another object in the context of a different object (the calling object).
 
Methods inherited from class Object
toString
 

Method Detail

apply

public any apply(Object thisArgument,
                 any[] argArray)
Allows you to apply a method of another object in the context of a different object (the calling object).

Parameters:
thisArgument - Parameter for the calling object.
argArray - An argument array for the object.

call

public any call(Object thisArgument,
                any... args)
Allows you to call (execute) a method of another object in the context of a different object (the calling object). With call, you can write a method once and then inherit it in another object, without having to rewrite the method for the new object.

Parameters:
thisArgument - Parameter for the calling object.
args - Arguments for the object