var obj:Object = new DecalMetaDatumLE();
var str:String = getQualifiedClassName( obj );
var def:Class = getDefinitionByName(str) as Class;
if (def["toJSONText"] != null)
{
trace("call it!");
}
Still not sure how to list off all the static methods of a class.
But this is all I need for now. The ability to check for an object having a static method.
Making an advanced JSONEncoder where all complex data types can specify a
"toJSONText" and "fromJSONText" public static method that my JSONEncoder and JSONDecoder
will look for to better serialize complex objects.
No comments:
Post a Comment