Functions.MethodList 方法 |
命名空间: XSharp.RT
FUNCTION MethodList( oClass AS Object ) AS ARRAY
public static __Array MethodList( Object oClass )
1FUNCTION Start() 2 LOCAL oPerson AS Person 3 oPerson := Person{"Susan", 5, "Cue"} 4 AEval(MethodList(oPerson),{|x| QOut(x)}) 5 // 结果是: 6 // INIT 7 // SHOWGRADE 8CLASS Person 9 EXPORT name 10 INSTANCE grade 11 PROTECT password 12CONSTRUCTOR(tname, tgrade, tpassword) 13 name := tname 14 grade := tgrade 15 password := tpassword 16METHOD ShowGrade() 17 ? grade 18ACCESS Grade() 19 RETURN grade 20END CLASS