Class

Class represent classes and methodes in NXSL script

Instance attributes

attributes: Array

String array with all attribute names, including inherited ones

hierarchy: Array

String array with class inheritance hierarchy, starting from the root class Object and ending with the class itself

methods: Array

String array with all method names, including inherited ones

name: String

Name of the class

obj = $object;
println("Class hierarchy:");
println(obj.__class.hierarchy.join(" -> "));
println();
println("Attributes:");
for (a : obj.__class.attributes) println(a .. " = " .. obj.__get(a));
println();
println("Methods:");
for (m : obj.__class.methods) println(m);