net.jangaroo.utils
Enum AS3Type

java.lang.Object
  extended by java.lang.Enum<AS3Type>
      extended by net.jangaroo.utils.AS3Type
All Implemented Interfaces:
Serializable, Comparable<AS3Type>

public enum AS3Type
extends Enum<AS3Type>

All built-in ActionScript 3 types.


Enum Constant Summary
ANY
           
ARRAY
           
BOOLEAN
           
DATE
           
INT
           
NUMBER
           
REG_EXP
           
STRING
           
UINT
           
VOID
           
 
Field Summary
 String defaultValue
           
 String name
           
 
Method Summary
static String getDefaultValue(String typeName)
           
 String toString()
           
static AS3Type typeByName(String name)
           
static AS3Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AS3Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BOOLEAN

public static final AS3Type BOOLEAN

NUMBER

public static final AS3Type NUMBER

INT

public static final AS3Type INT

UINT

public static final AS3Type UINT

STRING

public static final AS3Type STRING

ARRAY

public static final AS3Type ARRAY

REG_EXP

public static final AS3Type REG_EXP

DATE

public static final AS3Type DATE

ANY

public static final AS3Type ANY

VOID

public static final AS3Type VOID
Field Detail

name

public final String name

defaultValue

public final String defaultValue
Method Detail

values

public static AS3Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (AS3Type c : AS3Type.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AS3Type valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

typeByName

public static AS3Type typeByName(String name)

getDefaultValue

public static String getDefaultValue(String typeName)

toString

public String toString()
Overrides:
toString in class Enum<AS3Type>


Copyright © 2002-2012 CoreMedia AG. All Rights Reserved.