/** * Gets class name (and generic components if this class is a * generic definition) * * @param lang.XPClass class * @return string */ protected static function displayNameOf(XPClass $class) { return $class->getName() . ($class->isGenericDefinition() ? '<' . implode(', ', $class->genericComponents()) . '>' : ''); }