| Package | org.as3commons.reflect |
| Class | public class Method |
| Inheritance | Method MetadataContainer Object |
| Implements | INamespaceOwner |
| Property | Defined By | ||
|---|---|---|---|
| declaringType : Type [read-only] | Method | ||
| fullName : String [read-only] | Method | ||
| isStatic : Boolean [read-only] | Method | ||
![]() | metadata : 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 | ||
| Property | Defined By | ||
|---|---|---|---|
| applicationDomain : ApplicationDomain | Method | ||
| declaringTypeName : String | Method | ||
| Method | Defined By | ||
|---|---|---|---|
Method(declaringType:String, name:String, isStatic:Boolean, parameters:Array, returnType:String, applicationDomain:ApplicationDomain, metadata:HashArray = null)
Creates a new Method instance. | Method | ||
![]() | addMetadata(metadata:Metadata):void
Adds a Metadata object to this container. | MetadataContainer | |
![]() | getMetadata(key:String):Array
Returns the array of Metadata object that corresponds to the given key. | MetadataContainer | |
![]() | hasExactMetadata(otherMetadata:Metadata):Boolean | MetadataContainer | |
![]() | 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 | ||
| applicationDomain | property |
protected var applicationDomain:ApplicationDomain| declaringType | property |
| declaringTypeName | property |
protected var declaringTypeName:String| fullName | property |
fullName:String [read-only] public function get fullName():String| isStatic | property |
isStatic:Boolean [read-only] public function get isStatic():Boolean| name | property |
name:String [read-only] public function get name():String| namespaceURI | property |
namespaceURI:String [read-only] public function get namespaceURI():String| parameters | property |
parameters:Array [read-only] public function get parameters():Array| qName | property |
qName:QName [read-only] public function get qName():QName| returnType | property |
| returnTypeName | property |
returnTypeName:String [read-only] as3commons_reflect function get returnTypeName():String| 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.
declaringType:String | |
name:String | |
isStatic:Boolean | |
parameters:Array | |
returnType:String | |
applicationDomain:ApplicationDomain | |
metadata:HashArray (default = null) |
| 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
|
* — the result of the method invocation, if any
|
| setDeclaringType | () | method |
as3commons_reflect function setDeclaringType(value:String):voidParameters
value:String |
| 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:String):voidParameters
value:String |
| toString | () | method |
public function toString():StringReturnsString |