Packageorg.as3commons.bytecode.emit
Interfacepublic interface IPropertyBuilder extends IEmitMember, flash.events.IEventDispatcher, IEmitObject, IMetadataContainer
Implementors PropertyBuilder

Describes an object that can generate a property on a class or interface to be used in an AbcFile.



Public Properties
 PropertyDefined By
  initialValue : *
The initial value for the generated property.
IPropertyBuilder
  isConstant : Boolean
If true the generated property will be marked as a constant.
IPropertyBuilder
 InheritedisFinal : Boolean
If true this member is marked as final and cannot be overridden in subclasses.
IEmitMember
 InheritedisOverride : Boolean
If true this member overrides a member of a superclass.
IEmitMember
 InheritedisStatic : Boolean
If true this member is marked as static.
IEmitMember
  memberInitialization : MemberInitialization
Descibes how to initialize the property if it has a complex type.
IPropertyBuilder
 Inheritedmetadata : Array
an Array of IMetadataBuilder instances that describe the metadata that will be generated for the current IMetadataContainer.
IMetadataContainer
 Inheritedname : String
The name of the current IEmitObject.
IEmitObject
 InheritednamespaceURI : String
The namespace URL that the current IEmitObject belongs to.
IEmitObject
 InheritedpackageName : String
The fully qualified package name for the current IEmitObject.
IEmitObject
 InheritedscopeName : String
The scope name that the current IEmitObject belongs to.
IEmitObject
 Inheritedtrait : TraitInfo
The TraitInfo that is associated with the current IEmitObject, this is usually generated automatically and needs not to be set.
IEmitObject
  type : String
The fully qualified type name of the generated property.
IPropertyBuilder
 Inheritedvisibility : MemberVisibility
The visibility of the current IEmitObject within the package.
IEmitObject
Public Methods
 MethodDefined By
  
build():Object
Internally used build method, this method should never be called by third parties.
IPropertyBuilder
  
Creates opcodes for all member initializers.
IPropertyBuilder
 Inherited
defineMetadata(name:String = null, arguments:Array = null):IMetadataBuilder
Creates an IMetadataBuilder instance that is able to generate a metadata entry for the current IMetadataContainer.
IMetadataContainer
Property Detail
initialValueproperty
initialValue:*

The initial value for the generated property. I.e. "defaultValue" or 125, etc.


Implementation
    public function get initialValue():*
    public function set initialValue(value:any):void
isConstantproperty 
isConstant:Boolean

If true the generated property will be marked as a constant.


Implementation
    public function get isConstant():Boolean
    public function set isConstant(value:Boolean):void
memberInitializationproperty 
memberInitialization:MemberInitialization

Descibes how to initialize the property if it has a complex type.


Implementation
    public function get memberInitialization():MemberInitialization
    public function set memberInitialization(value:MemberInitialization):void
typeproperty 
type:String

The fully qualified type name of the generated property. I.e. flash.util.Dictionary.


Implementation
    public function get type():String
    public function set type(value:String):void
Method Detail
build()method
public function build():Object

Internally used build method, this method should never be called by third parties.

Returns
Object
buildPropertyInitializers()method 
public function buildPropertyInitializers():Array

Creates opcodes for all member initializers. These opcodes can later be merged into the constructor body.

Returns
Array — An Array of Op instances.