Packageorg.as3commons.reflect
Classpublic class MethodInvoker
ImplementsINamespaceOwner

A MethodInvoker is a representation of a method call or invocation. Use this to dynamically invoke methods on an object.

var invoker:MethodInvoker = new MethodInvoker(); invoker.target = myInstance; invoker.method = "aMethod"; invoker.arguments = ["arg1", 123, true]; var result:= invoker.invoke();



Public Properties
 PropertyDefined by
  arguments : Array
Returns the arguments used by this MethodInvoker.
MethodInvoker
  method : String
Returns the method this MethodInvoker is dealing with.
MethodInvoker
  namespaceURI : String
MethodInvoker
  target : *
Returns the target of this MethodInvoker.
MethodInvoker
Public Methods
 MethodDefined by
  
Creates a new MethodInvoker object.
MethodInvoker
  
invoke():*
Executes this MethodInvoker.
MethodInvoker
Property detail
argumentsproperty
arguments:Array  [read-write]

Returns the arguments used by this MethodInvoker.

Implementation
    public function get arguments():Array
    public function set arguments(value:Array):void
methodproperty 
method:String  [read-write]

Returns the method this MethodInvoker is dealing with.

Implementation
    public function get method():String
    public function set method(value:String):void
namespaceURIproperty 
namespaceURI:String  [read-write]Implementation
    public function get namespaceURI():String
    public function set namespaceURI(value:String):void
targetproperty 
target:*  [read-write]

Returns the target of this MethodInvoker.

Implementation
    public function get target():*
    public function set target(value:*):void
Constructor detail
MethodInvoker()constructor
public function MethodInvoker()

Creates a new MethodInvoker object.

Method detail
invoke()method
public function invoke():*

Executes this MethodInvoker.

Returns
*