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

Describes an object that can generate an accessor (getter/setter) method for a generated class.



Public Properties
 PropertyDefined By
  access : AccessorAccess
Determines the access to the generated accessor, or, in other words whether it will generate a getter, a setter, or both.
IAccessorBuilder
  createPrivateProperty : Boolean
Determines if a private variable should be created automatically to hold the accessor's value.
IAccessorBuilder
 InheritedinitialValue : *
The initial value for the generated property.
IPropertyBuilder
 InheritedisConstant : 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
 InheritedmemberInitialization : 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
  property : IPropertyBuilder
Determines the property that is exposed by the generated accessor.
IAccessorBuilder
 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
 Inheritedtype : 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
 Inherited
build():Object
Internally used build method, this method should never be called by third parties.
IPropertyBuilder
 Inherited
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
Events
 Event Summary Defined By
  IAccessorBuilder
  IAccessorBuilder
Property Detail
accessproperty
access:AccessorAccess

Determines the access to the generated accessor, or, in other words whether it will generate a getter, a setter, or both.


Implementation
    public function get access():AccessorAccess
    public function set access(value:AccessorAccess):void
createPrivatePropertyproperty 
createPrivateProperty:Boolean

Determines if a private variable should be created automatically to hold the accessor's value.

The default value is true.


Implementation
    public function get createPrivateProperty():Boolean
    public function set createPrivateProperty(value:Boolean):void
propertyproperty 
property:IPropertyBuilder

Determines the property that is exposed by the generated accessor.

When not explicitly set, this will default to a private member with the same type as the accessor.


Implementation
    public function get property():IPropertyBuilder
    public function set property(value:IPropertyBuilder):void
Event Detail
buildGetter Event
Event Object Type: org.as3commons.bytecode.emit.event.AccessorBuilderEvent

buildSetter Event  
Event Object Type: org.as3commons.bytecode.emit.event.AccessorBuilderEvent