Packageorg.pranaframework.reflection
Classpublic class Method

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
  name : 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:*)
Creates a new Method instance.
Method
  
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
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:*)

Creates a new Method instance.

Parameters
declaringType:Type
 
name:String
 
isStatic:Boolean
 
parameters:Array
 
returnType:*
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
toString()method 
public function toString():String

Returns
String