Skip to main content
🚨 重要提示

本项目目前仍处于早期开发阶段,核心功能尚未完全实现,语法规范和工具链仍在持续完善中。

Base Type

🐳Type Overview​

The base type is the foundation of all types; every type inherits from it.

TypeDescription
objectThe base type
Analogy with other languages

The base type is similar to Java's ancestor class: every class inherits, directly or indirectly, from the Object class.

The base type provides some very important and commonly used methods that are frequently used during development.

🏅Base Methods​

MethodDescription
object.clone(bool deep)Clones the object. deep: whether to perform a deep copy (recursively copying its contents) or a shallow copy
object.toString()Converts the object to a string
object.valueEquals(object anotherObject)Compares whether the values of two objects are equal
object.referenceEquals(object anotherObject)Compares whether two objects are the same object. Equivalent to: object == anotherObject
object.isNull()Determines whether an object is null
object.isProxy()Determines whether an object is a proxy object
object.getProxyTarget()
object.getProxyTarget(bool: deep)
Gets the original object of a proxy object. For nested proxy objects, if deep is true, recursively retrieves the innermost one