private void BuildDefineString(StringBuilder sb)
{
if (this.SuperClass is IClass && ((IClass)this.SuperClass).Name != "UndefinedObject")
sb.Append(((IClass)this.SuperClass).Name);
else
sb.Append("nil");
if (this.IsAgentClass)
sb.Append(" agent: #");
else
sb.Append(" subclass: #");
sb.Append(this.Name);
sb.Append("\r\n");
sb.Append(" instanceVariableNames: '");
sb.Append(this.GetInstanceVariableNamesAsString());
sb.Append("'\r\n");
sb.Append(" classVariableNames: '");
sb.Append(this.GetClassVariableNamesAsString());
sb.Append("'\r\n");
sb.Append(" poolDictionaries: ''\r\n");
sb.Append(" category: '");
if (this.Category != null)
sb.Append(this.Category);
sb.Append("'!\r\n");
}