This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
forked from claus/as3swf
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Simon Richardson
committed
Apr 10, 2012
1 parent
1164668
commit 2d23417
Showing
7 changed files
with
197 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
src/com/codeazur/as3swf/data/abc/reflect/ABCReflectConstant.as
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package com.codeazur.as3swf.data.abc.reflect | ||
{ | ||
import com.codeazur.as3swf.data.abc.ABC; | ||
import com.codeazur.as3swf.data.abc.bytecode.IABCMultiname; | ||
import com.codeazur.as3swf.data.abc.bytecode.traits.ABCTraitConstInfo; | ||
import com.codeazur.utils.StringUtils; | ||
/** | ||
* @author Simon Richardson - simon@ustwo.co.uk | ||
*/ | ||
public class ABCReflectConstant implements IABCReflectObject { | ||
|
||
private var _constInfo:ABCTraitConstInfo; | ||
|
||
public function ABCReflectConstant(constInfo:ABCTraitConstInfo) { | ||
_constInfo = constInfo; | ||
} | ||
|
||
public static function create(constInfo:ABCTraitConstInfo):ABCReflectConstant { | ||
return new ABCReflectConstant(constInfo); | ||
} | ||
|
||
public function get multiname():IABCMultiname { return _constInfo.multiname; } | ||
|
||
public function get isFinal():Boolean { return _constInfo.isFinal; } | ||
public function get isStatic():Boolean { return _constInfo.isStatic; } | ||
public function get typeMultiname():IABCMultiname { return _constInfo.typeMultiname; } | ||
public function get hasDefaultValue():Boolean { return _constInfo.hasDefaultValue; } | ||
public function get defaultValue():* { return _constInfo.defaultValue; } | ||
|
||
public function get name():String { return "ABCReflectConstant"; } | ||
|
||
public function toString(indent:uint=0):String { | ||
var str:String = ABC.toStringCommon(name, indent); | ||
|
||
str += "\n" + StringUtils.repeat(indent + 2) + "Multiname:"; | ||
str += "\n" + StringUtils.repeat(indent + 4) + multiname.fullPath; | ||
|
||
return str; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
src/com/codeazur/as3swf/data/abc/reflect/ABCReflectVariable.as
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package com.codeazur.as3swf.data.abc.reflect | ||
{ | ||
import com.codeazur.as3swf.data.abc.ABC; | ||
import com.codeazur.as3swf.data.abc.bytecode.IABCMultiname; | ||
import com.codeazur.as3swf.data.abc.bytecode.traits.ABCTraitSlotInfo; | ||
import com.codeazur.utils.StringUtils; | ||
/** | ||
* @author Simon Richardson - simon@ustwo.co.uk | ||
*/ | ||
public class ABCReflectVariable implements IABCReflectObject { | ||
|
||
private var _slotInfo:ABCTraitSlotInfo; | ||
|
||
public function ABCReflectVariable(slotInfo:ABCTraitSlotInfo) { | ||
_slotInfo = slotInfo; | ||
} | ||
|
||
public static function create(slotInfo:ABCTraitSlotInfo):ABCReflectVariable { | ||
return new ABCReflectVariable(slotInfo); | ||
} | ||
|
||
public function get multiname():IABCMultiname { return _slotInfo.multiname; } | ||
|
||
public function get isFinal():Boolean { return _slotInfo.isFinal; } | ||
public function get isStatic():Boolean { return _slotInfo.isStatic; } | ||
public function get typeMultiname():IABCMultiname { return _slotInfo.typeMultiname; } | ||
public function get hasDefaultValue():Boolean { return _slotInfo.hasDefaultValue; } | ||
public function get defaultValue():* { return _slotInfo.defaultValue; } | ||
|
||
public function get name():String { return "ABCReflectVariable"; } | ||
|
||
public function toString(indent:uint=0):String { | ||
var str:String = ABC.toStringCommon(name, indent); | ||
|
||
str += "\n" + StringUtils.repeat(indent + 2) + "Multiname:"; | ||
str += "\n" + StringUtils.repeat(indent + 4) + multiname.fullPath; | ||
|
||
return str; | ||
} | ||
} | ||
} |