GODPAPER | All Packages | All Classes | Index | Frames No Frames |
Enum

Package | com.godpaper.as3.utils
Class | public class Enum
Inheritance | Enum Object
Subclasses | DefaultPiecesConstants, DefaultTollgatesConstant, ZobristConstants

AS3 Fake Enum class

See also

http://scottbilas.com/blog/ultimate-as3-fake-enums/

Public Properties

| Property | Defined By
--- | --- | ---
|  | Index : int [read-only] | Enum
|  | Name : String [read-only] | Enum

Public Methods

| Method | Defined By
--- | --- | ---
|  | Enum() | Enum
|  | GetConstants(i_type:Class):Array [static] | Enum
|  | ParseConstant(i_type:Class, i_constantName:String, i_caseSensitive:Boolean = false):Enum [static] | Enum
|  | toString():String | Enum

Protected Methods

| Method | Defined By
--- | --- | ---
|  | initEnum(i_type:Class):void [static] | Enum

Property Detail

Index | property

`Index:int` [read-only]

Implementation
`public function get Index():int`

Name | property |

`Name:String` [read-only]

Implementation
`public function get Name():String`
Constructor Detail

Enum | () | Constructor

`public function Enum()`

Method Detail

GetConstants | () | method

`public static function GetConstants(i_type:Class):Array`

Parameters

| `i_type:Class`

Returns

| `Array`

initEnum | () | method |

`protected static function initEnum(i_type:Class):void`

Parameters

| `i_type:Class`

ParseConstant | () | method |

`public static function ParseConstant(i_type:Class, i_constantName:String, i_caseSensitive:Boolean = false):Enum`

Parameters

| `i_type:Class`
| `i_constantName:String`
| `i_caseSensitive:Boolean` (default = `false`)``

Returns

| `Enum`

toString | () | method |

`public function toString():String`

Returns

| `String`

Thu Jan 16 2014, 01:11 PM +08:00