net.jangaroo.utils
Enum AS3Type
java.lang.Object
java.lang.Enum<AS3Type>
net.jangaroo.utils.AS3Type
- All Implemented Interfaces:
- Serializable, Comparable<AS3Type>
public enum AS3Type
- extends Enum<AS3Type>
All built-in ActionScript 3 types.
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
name
public final String name
defaultValue
public final String defaultValue
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.