Class baja.DefaultSimple
Extends
baja.Simple.
DefaultSimple
Most of the core Simples in BajaScript are represented (i.e. 'baja:String', 'baja:Double' etc). However, they'll always be some Simples that BajaScript won't have support for. If a dedicated JS Constructor for a Simple can't be found, it'll default back to an instance of a DefaultSimple.
A DefaultSimple holds the decoded String representation of a Simple.
When creating a Simple, always use the 'make' method instead of creating a new Object.
Defined in: obj.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Field Attributes | Field Name and Description |
|---|---|
| <static> |
baja.DefaultSimple.DEFAULT
Default DefaultSimple instance.
|
- Fields borrowed from class baja.Value:
- newCopy
- Fields borrowed from class baja.Object:
- equivalent, getIcon
| Method Attributes | Method Name and Description |
|---|---|
|
decodeFromString(str)
Decode a DefaultSimple from a String
|
|
|
Encode a DefaultSimple to a String.
|
|
|
make(str)
Make a DefaultSimple.
|
|
|
toString()
Return the String encoding of a DefaultSimple.
|
|
|
valueOf()
Return the String encoding of a DefaultSimple.
|
- Methods borrowed from class baja.Simple:
- equals
Field Detail
<static>
baja.DefaultSimple.DEFAULT
Default DefaultSimple instance.
Method Detail
{baja.DefaultSimple}
decodeFromString(str)
Decode a DefaultSimple from a String
- Parameters:
- {String} str
- Returns:
- {baja.DefaultSimple}
{String}
encodeToString()
Encode a DefaultSimple to a String.
- Returns:
- {String}
{baja.DefaultSimple}
make(str)
Make a DefaultSimple.
- Parameters:
- {String} str
- the String to be used for this Simple
- Returns:
- {baja.DefaultSimple} an instance of the Simple
{String}
toString()
Return the String encoding of a DefaultSimple.
- Returns:
- {String}
{String}
valueOf()
Return the String encoding of a DefaultSimple.
- Returns:
- {String}