API Documentation | All Packages | All Classes | Index | Frames No Frames |
ClassNameUtil

Package | org.flexunit.utils
Class | public class ClassNameUtil
Inheritance | ClassNameUtil Object

The `ClassNameUtil` is responsible for assisting in the formatting of class names.

Public Methods

| Method | Defined By
--- | --- | ---
|  | ClassNameUtil() Constructor. | ClassNameUtil
|  | getLoggerFriendlyClassName(instanceOrClass:Object):String [static] Returns a logger friendly class name for the provided instance or class. | ClassNameUtil

Constructor Detail

ClassNameUtil | () | Constructor

`public function ClassNameUtil()`

Constructor.

Method Detail

getLoggerFriendlyClassName | () | method

`public static function getLoggerFriendlyClassName(instanceOrClass:Object):String`

Returns a logger friendly class name for the provided instance or class. The normal qualified class name will have all "::", "." and "$" replaced with underscores.

Parameters

| `instanceOrClass:Object` — or class The Object for which to obtain a logger friendly class name.

Returns

| `String` — an escaped path that the Logger class can parse

Thu Apr 10 2014, 08:07 AM +10:00