Object

private class
system.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

Does this object have a property with the name provided

isNaN ( n: Number ): Boolean static native

Checks to see 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

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. 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

Does this object have a property with the name provided.

Parameters

name: String Property to test for.


isNaN ( n: Number ): Boolean

static native

Checks to see if the provided number is NaN.

Parameters

n: Number Number to check if it 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. 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 Object.toString() on the subclass.

See also:
system.Object#toString()

Parameters

args: Vector.<Object> variable number of arguments to print