Show:

EnumSymbol Class

One of the constant values that is generated by the Enum "addSymbol" method. EnumSymbols should ONLY be created via the Enum.addSymbol method.

 var DayOfWeek = new Enum("DayOfWeek");
 DayOfWeek.Monday    = DayOfWeek.addSymbol();

Item Index

Methods

Properties

Methods

getName

()

Returns the name of this symbol.

Example:

var name = DayOfWeek.Monday.getName();
// name === "Monday"

toString

()

Same as the getName method. Returns the name of this symbol.

Example:

var name = DayOfWeek.Monday.toString();
// name === "Monday"

Properties

parentEnum

Enum

The Enum to which this symbol belongs. readOnly