Package | sekati.reflect |
Class | public class ClassReflector |
Property | Defined by | ||
---|---|---|---|
constructor : MethodReflector
Constructor description
| ClassReflector | ||
description : XML [read-only]
The output of describeType
| ClassReflector | ||
interfaces : Array [read-only]
Interfaces the Class implements
| ClassReflector | ||
isConcrete : Boolean [read-only]
Is this a Class or an interface?
| ClassReflector | ||
isDynamic : Boolean [read-only]
Indicates if the Class is dynamic
note: flash.utils.describeType lies to us and only returns the correct answer if you use describeType on an instance of a class, not the class itself. | ClassReflector | ||
isFinal : Boolean [read-only]
Is this class marked as final
| ClassReflector | ||
isInterface : Boolean [read-only]
Is this Class an interface?
| ClassReflector | ||
methods : Array [read-only]
Instance method descriptions
| ClassReflector | ||
packageName : String [read-only]
The package the Class is in
| ClassReflector | ||
properties : Array [read-only]
Instance Properties and Variables
| ClassReflector | ||
propertiesAndMethods : Array [read-only]
All MethoddInfo instances for the properties, variables and methods of an instance of the reflected class
| ClassReflector | ||
qualifiedName : String [read-only]
The fully qualified class name
| ClassReflector | ||
shortName : String [read-only]
The class name without namespaces
| ClassReflector | ||
superClasses : Array [read-only]
Classes the class extends
| ClassReflector | ||
type : Class [read-only]
The class that was reflected
| ClassReflector |
Method | Defined by | ||
---|---|---|---|
ClassReflector(o:Object)
ClassReflector Constructor
| ClassReflector | ||
getter(name:String):MethodReflector
Search for a getter (property, variable or method) with the specified name and return its MethodReflector
| ClassReflector | ||
isImplementorOf(type:Class):Boolean
Indicates if the reflected class implements the supplied type
| ClassReflector | ||
isSubClassOf(type:Class):Boolean
Indicates if the reflected class is a subclass of the supplied class
| ClassReflector | ||
method(name:String):MethodReflector
Search for a method with the specified name and return its MethodReflector
| ClassReflector | ||
property(name:String):MethodReflector
Search for a property or variable with the specified name and return its MethodReflector
| ClassReflector | ||
setter(name:String):MethodReflector
Search for a setter (property, variable or method) with the specified name and return its MethodReflector
| ClassReflector | ||
toString():String
| ClassReflector |
constructor | property |
public var constructor:MethodReflector
Constructor description
description | property |
description:XML
[read-only]The output of describeType
Implementation public function get description():XML
interfaces | property |
interfaces:Array
[read-only]Interfaces the Class implements
Implementation public function get interfaces():Array
isConcrete | property |
isConcrete:Boolean
[read-only]Is this a Class or an interface?
Implementation public function get isConcrete():Boolean
isDynamic | property |
isDynamic:Boolean
[read-only]Indicates if the Class is dynamic
note: flash.utils.describeType lies to us and only returns the correct answer if you use describeType on an instance of a class, not the class itself. Until a workaround is found this function will always returns false.
Implementation public function get isDynamic():Boolean
isFinal | property |
isFinal:Boolean
[read-only]Is this class marked as final
Implementation public function get isFinal():Boolean
isInterface | property |
isInterface:Boolean
[read-only]Is this Class an interface?
Implementation public function get isInterface():Boolean
methods | property |
methods:Array
[read-only]Instance method descriptions
Implementation public function get methods():Array
packageName | property |
packageName:String
[read-only]The package the Class is in
Implementation public function get packageName():String
properties | property |
properties:Array
[read-only]Instance Properties and Variables
Implementation public function get properties():Array
propertiesAndMethods | property |
propertiesAndMethods:Array
[read-only]All MethoddInfo instances for the properties, variables and methods of an instance of the reflected class
Implementation public function get propertiesAndMethods():Array
qualifiedName | property |
qualifiedName:String
[read-only]The fully qualified class name
Implementation public function get qualifiedName():String
shortName | property |
shortName:String
[read-only]The class name without namespaces
Implementation public function get shortName():String
superClasses | property |
superClasses:Array
[read-only]Classes the class extends
Implementation public function get superClasses():Array
type | property |
type:Class
[read-only]The class that was reflected
Implementation public function get type():Class
ClassReflector | () | constructor |
public function ClassReflector(o:Object)
ClassReflector Constructor
Parameterso:Object — - Class or class instance to be reflected.
|
getter | () | method |
public function getter(name:String):MethodReflector
Search for a getter (property, variable or method) with the specified name and return its MethodReflector
Parametersname:String — The getter name to search for
|
MethodReflector —
The MethodReflector for the getter if it exists
|
isImplementorOf | () | method |
public function isImplementorOf(type:Class):Boolean
Indicates if the reflected class implements the supplied type
Parameterstype:Class |
Boolean |
isSubClassOf | () | method |
public function isSubClassOf(type:Class):Boolean
Indicates if the reflected class is a subclass of the supplied class
Parameterstype:Class |
Boolean |
method | () | method |
public function method(name:String):MethodReflector
Search for a method with the specified name and return its MethodReflector
Parametersname:String — The method name to search for
|
MethodReflector —
The MethodReflector for the method if it exists
|
property | () | method |
public function property(name:String):MethodReflector
Search for a property or variable with the specified name and return its MethodReflector
Parametersname:String — The property or variable name to search for
|
MethodReflector —
The MethodReflector for the property if it exists
|
setter | () | method |
public function setter(name:String):MethodReflector
Search for a setter (property, variable or method) with the specified name and return its MethodReflector
Parametersname:String — The setter name to search for
|
MethodReflector —
The MethodReflector for the setter if it exists
|
toString | () | method |
public function toString():String
Returns
String |