Packageorg.as3commons.reflect
Classpublic class Constant
InheritanceConstant Inheritance Field Inheritance AbstractMember Inheritance MetadataContainer Inheritance Object

A property defined with the const 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
  
Constant(name:String, type:String, declaringType:String, isStatic:Boolean, applicationDomain:ApplicationDomain, metadata:HashArray = null)
Creates a new Constant object.
Constant
 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):Constant
[static]
Constant
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
Constant()Constructor
public function Constant(name:String, type:String, declaringType:String, isStatic:Boolean, applicationDomain:ApplicationDomain, metadata:HashArray = null)

Creates a new Constant object.

Parameters
name:String — the name of the constant
 
type:String — the data type of the constant
 
declaringType:String — the type that declares the constant
 
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):Constant

Parameters

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

Returns
Constant