Package | org.swizframework.reflection |
Class | public class TypeDescriptor |
Inheritance | TypeDescriptor ![]() |
flash.utils.describeType
output and primarily focused on metadata.
Property | Defined By | ||
---|---|---|---|
className : String
The fully qualified name of this type. | TypeDescriptor | ||
constants : Array
The constants defined by this class. | TypeDescriptor | ||
description : XML
Output of flash.utils.describeType for this type. | TypeDescriptor | ||
domain : ApplicationDomain
The Application Domain this TypeDescriptor is associated with
| TypeDescriptor | ||
interfaces : Array
The fully qualified name of all interfaces this type implements. | TypeDescriptor | ||
metadataHosts : Dictionary
Dictionary of IMetadataHost instances for this type, keyed by name. | TypeDescriptor | ||
superClasses : Array
The fully qualified name of all superclasses this type extends. | TypeDescriptor | ||
type : Class
The Class of this type. | TypeDescriptor |
Method | Defined By | ||
---|---|---|---|
TypeDescriptor | |||
fromXML(describeTypeXml:XML, domain:ApplicationDomain):TypeDescriptor
Populates the TypeDescriptor instance from the data returned
by flash.utils.describeType. | TypeDescriptor | ||
getMetadataHostMethods():Array
Return all MetadataHostMethod instances for this type. | TypeDescriptor | ||
getMetadataHostProperties():Array
Return all MetadataHostProperty instances for this type. | TypeDescriptor | ||
getMetadataHostsWithTag(metadataTagName:String):Array
Get all IMetadataHost instances for this type that are decorated
with metadata tags with the provided name. | TypeDescriptor | ||
getMetadataTagsByName(tagName:String):Array
Get all IMetadataTag instances for class member with the provided name. | TypeDescriptor | ||
getMetadataTagsForMember(memberName:String):Array
Get all IMetadataTag instances for class member with the provided name. | TypeDescriptor | ||
hasMetadataTag(metadataTagName:String):Boolean
Determine whether or not this class has any instances of
metadata tags with the provided name. | TypeDescriptor | ||
satisfiesType(typeName:String):Boolean
Returns true if this descriptor's className, superClass, or any interfaces
match a typeName. | TypeDescriptor |
Method | Defined By | ||
---|---|---|---|
getMetadataHost(hostNode:XML):IMetadataHost
Get IMetadataHost for provided XML node. | TypeDescriptor | ||
getMetadataHosts(description:XML):Dictionary
Gather and return all properties, methods or the class itself that
are decorated with metadata. | TypeDescriptor |
className | property |
public var className:String
The fully qualified name of this type.
constants | property |
public var constants:Array
The constants defined by this class.
description | property |
public var description:XML
Output of flash.utils.describeType
for this type.
domain | property |
public var domain:ApplicationDomain
The Application Domain this TypeDescriptor is associated with
interfaces | property |
public var interfaces:Array
The fully qualified name of all interfaces this type implements.
metadataHosts | property |
public var metadataHosts:Dictionary
Dictionary of IMetadataHost
instances for this type, keyed by name.
See also
superClasses | property |
public var superClasses:Array
The fully qualified name of all superclasses this type extends.
type | property |
public var type:Class
The Class of this type.
TypeDescriptor | () | Constructor |
public function TypeDescriptor()
fromXML | () | method |
public function fromXML(describeTypeXml:XML, domain:ApplicationDomain):TypeDescriptor
Populates the TypeDescriptor
instance from the data returned
by flash.utils.describeType
.
Parameters
describeTypeXml:XML | |
domain:ApplicationDomain |
TypeDescriptor |
See also
getMetadataHost | () | method |
protected function getMetadataHost(hostNode:XML):IMetadataHost
Get IMetadataHost
for provided XML node.
Parameters
hostNode:XML — Node from flash.utils.describeType output
|
IMetadataHost — IMetadataHost instance
|
getMetadataHostMethods | () | method |
public function getMetadataHostMethods():Array
Return all MetadataHostMethod
instances for this type.
Array — MetadataHostMethod instances
|
See also
getMetadataHostProperties | () | method |
public function getMetadataHostProperties():Array
Return all MetadataHostProperty
instances for this type.
Array — MetadataHostProperty instances
|
See also
getMetadataHosts | () | method |
protected function getMetadataHosts(description:XML):Dictionary
Gather and return all properties, methods or the class itself that are decorated with metadata.
Parameters
description:XML |
Dictionary — IMetadataHost instances
|
getMetadataHostsWithTag | () | method |
public function getMetadataHostsWithTag(metadataTagName:String):Array
Get all IMetadataHost
instances for this type that are decorated
with metadata tags with the provided name.
Parameters
metadataTagName:String — Name of tags to retrieve
|
Array — IMetadataHost instances
|
getMetadataTagsByName | () | method |
public function getMetadataTagsByName(tagName:String):Array
Get all IMetadataTag
instances for class member with the provided name.
Parameters
tagName:String — Name of metadata tags to find
|
Array — IMetadataTag instances
|
getMetadataTagsForMember | () | method |
public function getMetadataTagsForMember(memberName:String):Array
Get all IMetadataTag
instances for class member with the provided name.
Parameters
memberName:String — Name of class member (property or method)
|
Array — IMetadataTag instances
|
hasMetadataTag | () | method |
public function hasMetadataTag(metadataTagName:String):Boolean
Determine whether or not this class has any instances of metadata tags with the provided name.
Parameters
metadataTagName:String |
Boolean — Flag indicating whether or not the metadata tag is present
|
satisfiesType | () | method |
public function satisfiesType(typeName:String):Boolean
Returns true if this descriptor's className, superClass, or any interfaces match a typeName.
Parameters
typeName:String |
Boolean |