ClassName

org.specs2.reflect.ClassName
See theClassName companion object
trait ClassName

Reflection methods for Class names

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ClassName
Self type

Members list

Value members

Concrete methods

def className(any: AnyRef): String

Attributes

Returns

the class name of an instance

def className(name: String): String

Attributes

Returns

the decoded class name, with its package

def className(klass: Class[_]): String

Attributes

Returns

the class name

def getOuterClassName(c: Class[_]): String

Attributes

Returns

the outer class name for a given class

def humanName(c: Class[_]): String

Attributes

Returns

the uncamelcased name of the class (or its parent if it is an anonymous class)

def packageName(name: String): String

Attributes

Returns

the package name from the decoded class name

def simpleClassName(any: AnyRef): String

Attributes

Returns

the class name of an instance

def simpleName(klass: Class[_]): String

Attributes

Returns

the class name without the package name

Extensions

Extensions

extension (klass: Class[_])
def humanName(using nothing: Int): String
def simpleName(using nothing: Int): String