Object
classin packageklyn
public class Object
Object

Object is the root class of all classes in the Klyn language.

Properties
Modifier and Type Member Description
public readonly property type
type as Type
Represents the type of the current object.
Constructors
Modifier and Type Member Description
public Object Creates a root object instance.
Methods
Modifier and Type Member Description
public native deepCopy
deepCopy() as this
Creates a deep copy of the current object graph.
public static fromJson
fromJson<T>(json as String) as T
Deserializes JSON into the requested static type.
public hash
hash() as Long
Returns the hash value used by associative collections.
public toDict
toDict() as SortedMap<String, Object>
Returns the object public state as a map (alias of toMap).
public toJson
toJson(exclude as List<String> = null, spaces as Boolean = true, pretty as Boolean = false, indent as Int = 0) as String
Returns the object as JSON text.
public native toMap
toMap() as SortedMap<String, Object>
Returns the object public state as a map.
public toString
toString() as String
Returns a string representation of the object.
public toXml
toXml(exclude as List<String> = null, prettyPrint as Boolean = true, indent as Int = 4) as String
Returns the object as XML text.