Packageorg.as3commons.reflect
Classpublic class Variable
InheritanceVariable Inheritance Field Inheritance AbstractMember Inheritance MetadataContainer Inheritance Object

A property defined with the var keyword.



Public Properties
 PropertyDefined By
 InheriteddeclaringType : Type
[read-only]
AbstractMember
 InheritedisStatic : Boolean
[read-only]
AbstractMember
 Inheritedmetadata : Array
[read-only] Returns an array of all metadata objects in this container.
MetadataContainer
 Inheritedname : String
[read-only]
AbstractMember
 InheritednamespaceURI : String
[read-only]
AbstractMember
 InheritedqName : QName
[read-only]
AbstractMember
 Inheritedtype : Type
[read-only]
AbstractMember
Protected Properties
 PropertyDefined By
 InheritedapplicationDomain : ApplicationDomain
AbstractMember
Public Methods
 MethodDefined By
  
Variable(name:String, type:String, declaringType:String, isStatic:Boolean, applicationDomain:ApplicationDomain, metadata:HashArray = null)
Creates a new Variable object.
Variable
 Inherited
addMetadata(metadata:Metadata):void
Adds a Metadata object to this container.
MetadataContainer
 Inherited
equals(other:Object):Boolean
AbstractMember
 Inherited
getCacheKey(clazz:Class, name:String, type:String, declaringType:String, isStatic:Boolean, applicationDomain:ApplicationDomain, metadata:HashArray = null):String
[static]
AbstractMember
 Inherited
getMetadata(key:String):Array
Returns the array of Metadata object that corresponds to the given key.
MetadataContainer
 Inherited
getValue(target:* = null):*
Returns the value of the field.
Field
 Inherited
hasExactMetadata(otherMetadata:Metadata):Boolean
MetadataContainer
 Inherited
hasMetadata(key:String):Boolean
Returns whether this object has meta data for the given key.
MetadataContainer
  
newInstance(name:String, type:String, declaringType:String, isStatic:Boolean, applicationDomain:ApplicationDomain, metadata:HashArray = null):Variable
[static]
Variable
Protected Methods
 MethodDefined By
 Inherited
compareMetadata(metadataArray:Array):Boolean
AbstractMember
 Inherited
initAbstractType(name:String, isStatic:Boolean, type:String, declaringType:String, applicationDomain:ApplicationDomain):void
AbstractMember
Constructor Detail
Variable()Constructor
public function Variable(name:String, type:String, declaringType:String, isStatic:Boolean, applicationDomain:ApplicationDomain, metadata:HashArray = null)

Creates a new Variable object.

Parameters
name:String — the name of the variable
 
type:String — the data type of the variable
 
declaringType:String — the type that declares the variable
 
isStatic:Boolean — whether or not this member is static (class member)
 
applicationDomain:ApplicationDomain
 
metadata:HashArray (default = null)
Method Detail
newInstance()method
public static function newInstance(name:String, type:String, declaringType:String, isStatic:Boolean, applicationDomain:ApplicationDomain, metadata:HashArray = null):Variable

Parameters

name:String
 
type:String
 
declaringType:String
 
isStatic:Boolean
 
applicationDomain:ApplicationDomain
 
metadata:HashArray (default = null)

Returns
Variable