Class baja.Simple
Extends
baja.Value.
Represents baja:Simple in BajaScript.
Simples are immutable and represent primitive data types in Niagara. They are the basic building blocks of the architecture. Simples contain no slots themselves but do contain an implicit data value that can be encoded and decoded in a String format.
Simples must be immutable and under no circumstances should there be any attempt to modify the contents of a Simple.
all Simples must conform to the following conventions...
- Define a DEFAULT instance on the Simple Constructor.
- Define a make method.
- Define a decodeFromString method on the Object's instance that takes a String and returns an instance of the Simple.
- Define an encodeToString method on the Object's instance that encodes the value to a String.
Since this Constructor represents an abstract class, it should never
be directly used to create a new Object.
Defined in: obj.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
- Fields borrowed from class baja.Value:
- newCopy
- Fields borrowed from class baja.Object:
- equivalent, getIcon
| Method Attributes | Method Name and Description |
|---|---|
|
equals(obj)
Equality test.
|
Method Detail
{Boolean}
equals(obj)
Equality test.
- Parameters:
- obj
- Returns:
- {Boolean}