Object
Description
The Object class is at the root of the LoomScript class hierarchy. Objects are created by constructors using the new operator syntax. All classes that don't declare an explicit base class extend the built-in Object class.
API overview
Constructor
Object
()
Functions
Public functions
| deleteNative (): Void |
native Deletes the Object from memory if it is a native Object |
| getFullTypeName (): String |
native Gets the fully qualified type name of the Object |
| getType (): Type |
native Gets the Type that describes the Object |
| getTypeName (): String |
native Gets the type name of the Object |
| hasOwnProperty ( name: String ): Boolean |
native Returns true if this object has a property with the provided name |
| isNaN ( n: Number ): Boolean |
static native Returns true if the provided Number is NaN |
| nativeDeleted (): Boolean |
native True if this instance's native backing has been deleted |
| toString (): String |
native Returns a String that describes the Object |
| trace ( args: Vector.<Object> ): Void |
static native Prints a variable number of arguments to the console output |
Constructor
Object ()
Functions
getFullTypeName (): String
native
Gets the fully qualified type name of the Object. The fully qualified type name includes the package of the type.
Returns
| String | fully qualified type name of the Object. |
getType (): Type
native
Gets the Type that describes the Object.
Returns
| Type | The Type that describes the object. |
getTypeName (): String
native
Gets the type name of the Object.
Returns
| String | type name of the Object. |
hasOwnProperty ( name: String ): Boolean
native
Returns true if this object has a property with the provided name.
Parameters
| name: String | Property to test for. |
static native
Returns true if the provided Number is NaN.
Parameters
| n: Number | Number to check if it is NaN. |
toString (): String
native
Returns a String that describes the Object. This can be overriden to provide extra details when printing objects using trace().
Returns
| String | String that described the Object. |
trace ( args: Vector.<Object> ): Void
static native
Prints a variable number of arguments to the console output.
Passing objects to this method calls Object.toString() on them. To format objects for pretty printing, override the Object.toString() method.
See also:
system.Object#toString()
Parameters
| args: Vector.<Object> | A variable number of arguments to print. |