Some documentation.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4899 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2007-12-04 03:24:52 +00:00
parent 1b054677c2
commit 2b5933015e
+9
View File
@@ -27,11 +27,17 @@ import flash.utils.getDefinitionByName;
public class ClassUtil
{
/**
* Get the full class name, e.g. "com.threerings.util.ClassUtil".
*/
public static function getClassName (obj :Object) :String
{
return getQualifiedClassName(obj).replace("::", ".");
}
/**
* Get the class name with the last part of the package, e.g. "util.ClassUtil".
*/
public static function shortClassName (obj :Object) :String
{
var s :String = getQualifiedClassName(obj);
@@ -40,6 +46,9 @@ public class ClassUtil
return s.replace("::", ".");
}
/**
* Get just the class name, e.g. "ClassUtil".
*/
public static function tinyClassName (obj :Object) :String
{
var s :String = getClassName(obj);