formatting and commenting.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5363 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -347,9 +347,11 @@ public class StringUtil
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Return a string containing all the public fields of the object
|
* Return a string containing all the public fields of the object
|
||||||
|
*
|
||||||
|
* @param fieldNames the names of fields to print, or null to print all.
|
||||||
*/
|
*/
|
||||||
public static function fieldsToString (
|
public static function fieldsToString (
|
||||||
buf :StringBuilder, obj :Object, fieldNames :Array=null) :void
|
buf :StringBuilder, obj :Object, fieldNames :Array = null) :void
|
||||||
{
|
{
|
||||||
if (fieldNames == null) {
|
if (fieldNames == null) {
|
||||||
fieldNames = Environment.enumerateFields(obj);
|
fieldNames = Environment.enumerateFields(obj);
|
||||||
@@ -366,8 +368,10 @@ public class StringUtil
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Return a pretty basic toString of the supplied Object.
|
* Return a pretty basic toString of the supplied Object.
|
||||||
|
*
|
||||||
|
* @param fieldNames the names of fields to print, or null to print all.
|
||||||
*/
|
*/
|
||||||
public static function simpleToString (obj :Object, fieldNames :Array=null) :String
|
public static function simpleToString (obj :Object, fieldNames :Array = null) :String
|
||||||
{
|
{
|
||||||
var buf :StringBuilder = new StringBuilder("[");
|
var buf :StringBuilder = new StringBuilder("[");
|
||||||
buf.append(ClassUtil.tinyClassName(obj));
|
buf.append(ClassUtil.tinyClassName(obj));
|
||||||
|
|||||||
Reference in New Issue
Block a user