| Package | org.as3commons.bytecode.emit |
| Interface | public interface IClassBuilder extends ITypeBuilder, flash.events.IEventDispatcher, IEmitObject, IMetadataContainer |
| Implementors | ClassBuilder |
AbcFile which
enables runtime class generation.
| Property | Defined By | ||
|---|---|---|---|
| constantPool : IConstantPool | IClassBuilder | ||
| isDynamic : Boolean
If true the class that will be generated will be marked as dynamic. | IClassBuilder | ||
![]() | isFinal : Boolean
If true the class that will be generated will be marked as final. | ITypeBuilder | |
![]() | isInternal : Boolean
If true the class that will be generated will be marked as internal. | ITypeBuilder | |
![]() | metadata : Array
an Array of IMetadataBuilder instances that describe the metadata that
will be generated for the current IMetadataContainer. | IMetadataContainer | |
![]() | name : String
The name of the current IEmitObject. | IEmitObject | |
![]() | namespaceURI : String
The namespace URL that the current IEmitObject belongs to. | IEmitObject | |
![]() | packageName : String
The fully qualified package name for the current IEmitObject. | IEmitObject | |
![]() | scopeName : String
The scope name that the current IEmitObject belongs to. | IEmitObject | |
| superClassName : String
The fully qualified superclass name for the class that will be generated. | IClassBuilder | ||
![]() | trait : TraitInfo
The TraitInfo that is associated with the current IEmitObject, this is
usually generated automatically and needs not to be set. | IEmitObject | |
![]() | visibility : MemberVisibility
The visibility of the current IEmitObject within the package. | IEmitObject | |
| Method | Defined By | ||
|---|---|---|---|
![]() | build(applicationDomain:ApplicationDomain):Array
Internally used build method, this method should never be called by third parties. | ITypeBuilder | |
![]() | defineAccessor(name:String = null, type:String = null, initialValue:*):IAccessorBuilder
Creates an IAccessorBuilder (getter/setter) instance for the specified accessor name. | ITypeBuilder | |
Creates an ICtorBuilder instance that is able to generate the constructor method for the
class to be generated. | IClassBuilder | ||
![]() | 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 | |
![]() | defineMethod(methodName:String = null, nameSpace:String = null):IMethodBuilder
Creates an IMethodBuilder instance for the specified method name. | ITypeBuilder | |
defineProperty(propertyName:String = null, type:String = null, initialValue:*):IPropertyBuilder
Creates an IPropertyBuilder instance for the specified property name. | IClassBuilder | ||
implementInterface(name:String):void
Marks the generated class as an implementation of the specified fully qualified interface name. | IClassBuilder | ||
implementInterfaces(names:Array):void
Marks the generated class as an implementation of the specified list of fully qualified interface names. | IClassBuilder | ||
![]() | removeAccessor(name:String, nameSpace:String = null):void | ITypeBuilder | |
![]() | removeMethod(name:String, nameSpace:String = null):void | ITypeBuilder | |
removeProperty(name:String, nameSpace:String = null):void | IClassBuilder | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| IClassBuilder | ||||
| constantPool | property |
constantPool:IConstantPool public function get constantPool():IConstantPool public function set constantPool(value:IConstantPool):void| isDynamic | property |
isDynamic:Boolean
If true the class that will be generated will be marked as dynamic.
public function get isDynamic():Boolean public function set isDynamic(value:Boolean):void| superClassName | property |
superClassName:String
The fully qualified superclass name for the class that will be generated. I.e. mx.events.FlexEvent.
public function get superClassName():String public function set superClassName(value:String):void| defineConstructor | () | method |
public function defineConstructor():ICtorBuilder
Creates an ICtorBuilder instance that is able to generate the constructor method for the
class to be generated.
ICtorBuilder — The specified ICtorBuilder.
|
| defineProperty | () | method |
public function defineProperty(propertyName:String = null, type:String = null, initialValue:*):IPropertyBuilder
Creates an IPropertyBuilder instance for the specified property name.
Parameters
propertyName:String (default = null) — The name of the property. I.e. myProperty.
| |
type:String (default = null) — The fully qualified type of the property. I.e. String or flash.utils.Dictionary.
| |
initialValue:* (default = NaN) — The default value of the property. I.e. "My default value".
|
IPropertyBuilder — The specified IPropertyBuilder instance.
|
| implementInterface | () | method |
public function implementInterface(name:String):voidMarks the generated class as an implementation of the specified fully qualified interface name.
This will NOT automatically add the methods defined in this interface.
Parameters
name:String — The specified fully qualifed interface name. I.e. mx.styles.IStyleClient.
|
| implementInterfaces | () | method |
public function implementInterfaces(names:Array):voidMarks the generated class as an implementation of the specified list of fully qualified interface names.
This will NOT automatically add the methods defined in these interfaces.
Parameters
names:Array — The specified fully qualifed interface names. I.e. mx.styles.IStyleClient.
|
| removeProperty | () | method |
public function removeProperty(name:String, nameSpace:String = null):voidParameters
name:String | |
nameSpace:String (default = null) |
| extendedClassesNotFound | Event |