Packageorg.as3commons.reflect
Classpublic class Method
InheritanceMethod Inheritance MetadataContainer Inheritance Object
Implements INamespaceOwner

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
[read-only] 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
  qName : QName
[read-only]
Method
  returnType : Type
[read-only]
Method
Protected Properties
 PropertyDefined By
  applicationDomain : ApplicationDomain
Method
  declaringTypeName : String
Method
Public Methods
 MethodDefined By
  
Method(declaringType:String, name:String, isStatic:Boolean, parameters:Array, returnType:String, applicationDomain:ApplicationDomain, metadata:HashArray = 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
hasExactMetadata(otherMetadata:Metadata):Boolean
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
applicationDomainproperty
protected var applicationDomain:ApplicationDomain

declaringTypeproperty 
declaringType:Type  [read-only]


Implementation
    public function get declaringType():Type
declaringTypeNameproperty 
protected var declaringTypeName:String

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
qNameproperty 
qName:QName  [read-only]


Implementation
    public function get qName():QName
returnTypeproperty 
returnType:Type  [read-only]


Implementation
    public function get returnType():Type
returnTypeNameproperty 
returnTypeName:String  [read-only]


Implementation
    as3commons_reflect function get returnTypeName():String
Constructor Detail
Method()Constructor
public function Method(declaringType:String, name:String, isStatic:Boolean, parameters:Array, returnType:String, applicationDomain:ApplicationDomain, metadata:HashArray = null)

Creates a new Method instance.

Parameters
declaringType:String
 
name:String
 
isStatic:Boolean
 
parameters:Array
 
returnType:String
 
applicationDomain:ApplicationDomain
 
metadata:HashArray (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:String):void

Parameters

value:String

setFullName()method 
as3commons_reflect function setFullName(value:String):void

Parameters

value:String

setIsStatic()method 
as3commons_reflect function setIsStatic(value:Boolean):void

Parameters

value:Boolean

setName()method 
as3commons_reflect function setName(value:String):void

Parameters

value:String

setNamespaceURI()method 
as3commons_reflect function setNamespaceURI(value:String):void

Parameters

value:String

setParameters()method 
as3commons_reflect function setParameters(value:Array):void

Parameters

value:Array

setReturnType()method 
as3commons_reflect function setReturnType(value:String):void

Parameters

value:String

toString()method 
public function toString():String

Returns
String