class Foo { //constructor constructor(a) { testy = ["stuff",1,2,3]; } //attributes of PrintTesty function PrintTesty() { foreach(i,val in testy) { ::print("idx = "+i+" = "+val+" \n"); } } //attributes of testy testy = null; } foreach(member,val in Foo) { ::print(member+"\n"); local attr; if((attr = Foo.getattributes(member)) != null) { foreach(i,v in attr) { ::print("\t"+i+" = "+(typeof v)+"\n"); } } else { ::print("\t\n") } }