Packageorg.as3commons.reflect
Classpublic class MethodInvoker
InheritanceMethodInvoker Inheritance Object
Implements INamespaceOwner

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

Returns the arguments used by this MethodInvoker.


Implementation
    public function get arguments():Array
    public function set arguments(value:Array):void
methodproperty 
method:String

Returns the method this MethodInvoker is dealing with.


Implementation
    public function get method():String
    public function set method(value:String):void
namespaceURIproperty 
namespaceURI:String


Implementation
    public function get namespaceURI():String
    public function set namespaceURI(value:String):void
targetproperty 
target:*

Returns the target of this MethodInvoker.


Implementation
    public function get target():*
    public function set target(value:any):void
Constructor Detail
MethodInvoker()Constructor
public function MethodInvoker()

Creates a new MethodInvoker object.

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

Executes this MethodInvoker.

Returns
*