Packageorg.as3commons.reflect
Classpublic class Method
InheritanceMethod Inheritance MetaDataContainer
ImplementsINamespaceOwner

Provides information about a single method of a class or interface.



Public Properties
 PropertyDefined by
  declaringType : Type
[read-only]
Method
  fullName : String
[read-only]
Method
  isStatic : Boolean
[read-only]
Method
 InheritedmetaData : Array
Returns an array of all metadata objects in this container.
MetaDataContainer
  name : String
[read-only]
Method
  namespaceURI : String
[read-only]
Method
  parameters : Array
[read-only]
Method
  returnType : Type
[read-only]
Method
Public Methods
 MethodDefined by
  
Method(declaringType:Type, name:String, isStatic:Boolean, parameters:Array, returnType:Array, metaData:* = null)
Creates a new Method instance.
Method
 Inherited
addMetaData(metaData:MetaData):void
Adds a MetaData object to this container.
MetaDataContainer
 Inherited
getMetaData(key:String):Array
Returns the array of MetaData object that corresponds to the given key.
MetaDataContainer
 Inherited
hasMetaData(key:String):Boolean
Returns whether this object has meta data for the given key.
MetaDataContainer
  
invoke(target:*, args:Array):*
Invokes (calls) the method represented by this Method instance of the given target object with the passed in arguments.
Method
  
toString():String
Method
Property detail
declaringTypeproperty
declaringType:Type  [read-only]Implementation
    public function get declaringType():Type
fullNameproperty 
fullName:String  [read-only]Implementation
    public function get fullName():String
isStaticproperty 
isStatic:Boolean  [read-only]Implementation
    public function get isStatic():Boolean
nameproperty 
name:String  [read-only]Implementation
    public function get name():String
namespaceURIproperty 
namespaceURI:String  [read-only]Implementation
    public function get namespaceURI():String
parametersproperty 
parameters:Array  [read-only]Implementation
    public function get parameters():Array
returnTypeproperty 
returnType:Type  [read-only]Implementation
    public function get returnType():Type
Constructor detail
Method()constructor
public function Method(declaringType:Type, name:String, isStatic:Boolean, parameters:Array, returnType:Array, metaData:* = null)

Creates a new Method instance.

Parameters
declaringType:Type
 
name:String
 
isStatic:Boolean
 
parameters:Array
 
returnType:Array
 
metaData:* (default = null)
Method detail
invoke()method
public function invoke(target:*, args:Array):*

Invokes (calls) the method represented by this Method instance of the given target object with the passed in arguments.

Parameters
target:* — the object on which to invoke the method
 
args:Array — the arguments that will be passed along the method call

Returns
* — the result of the method invocation, if any
setDeclaringType()method 
as3commons_reflect function setDeclaringType(value:Type):voidParameters
value:Type
setFullName()method 
as3commons_reflect function setFullName(value:String):voidParameters
value:String
setIsStatic()method 
as3commons_reflect function setIsStatic(value:Boolean):voidParameters
value:Boolean
setName()method 
as3commons_reflect function setName(value:String):voidParameters
value:String
setNamespaceURI()method 
as3commons_reflect function setNamespaceURI(value:String):voidParameters
value:String
setParameters()method 
as3commons_reflect function setParameters(value:Array):voidParameters
value:Array
setReturnType()method 
as3commons_reflect function setReturnType(value:Type):voidParameters
value:Type
toString()method 
public function toString():String

Returns
String