Packagesekati.reflect
Classpublic class MethodReflector

MethodReflector provides a centralized method reflection API.



Public Properties
 PropertyDefined by
  callable : Boolean
[read-only] Indicates if the MethodInfo describes a method, not a property or variable
MethodReflector
  description : XML
[read-only] XML describing the property, variable or method
MethodReflector
  name : String
[read-only] Name of the property, variable or method
MethodReflector
  parameters : Array
[read-only] Method parameters as an ordered Array of Class
MethodReflector
  readable : Boolean
[read-only] Indicates if the MethodInfo describes a property or variable and is it readable
MethodReflector
  requiredParameters : Array
[read-only] Method required parameters as an ordered Array of Class
MethodReflector
  returnType : Class
[read-only] Returns the Class of the this method's return type, or null if function returns void.
MethodReflector
  writable : Boolean
[read-only] Indicates if the MethodInfo describes a property or variable and is it writable
MethodReflector
Public Methods
 MethodDefined by
  
MethodReflector(classReflection:ClassReflector, methodDescription:XML)
MethodReflector Constructor
MethodReflector
  
invoke(instance:Object, ... args):void
Calls this method on an instance, as appropriate for a method or property
MethodReflector
  
toString():String
MethodReflector
Property detail
callableproperty
callable:Boolean  [read-only]

Indicates if the MethodInfo describes a method, not a property or variable

Implementation
    public function get callable():Boolean
descriptionproperty 
description:XML  [read-only]

XML describing the property, variable or method

Implementation
    public function get description():XML
nameproperty 
name:String  [read-only]

Name of the property, variable or method

Implementation
    public function get name():String
parametersproperty 
parameters:Array  [read-only]

Method parameters as an ordered Array of Class

Implementation
    public function get parameters():Array
readableproperty 
readable:Boolean  [read-only]

Indicates if the MethodInfo describes a property or variable and is it readable

Implementation
    public function get readable():Boolean
requiredParametersproperty 
requiredParameters:Array  [read-only]

Method required parameters as an ordered Array of Class

Implementation
    public function get requiredParameters():Array
returnTypeproperty 
returnType:Class  [read-only]

Returns the Class of the this method's return type, or null if function returns void.

Implementation
    public function get returnType():Class
writableproperty 
writable:Boolean  [read-only]

Indicates if the MethodInfo describes a property or variable and is it writable

Implementation
    public function get writable():Boolean
Constructor detail
MethodReflector()constructor
public function MethodReflector(classReflection:ClassReflector, methodDescription:XML)

MethodReflector Constructor

Parameters
classReflection:ClassReflector
 
methodDescription:XML
Method detail
invoke()method
public function invoke(instance:Object, ... args):void

Calls this method on an instance, as appropriate for a method or property

Parameters
instance:Object
 
... args
toString()method 
public function toString():String

Returns
String