Same as
Same as
allInterfacesOf(aClass)
a class type
Return all interfaces that the given class implements included inherited ones
Return all interfaces that the given class implements included inherited ones
a class
Lists all direct sub-classes of the given sealed type T
Lists all direct sub-classes of the given sealed type T
sealed type
sequence of classes
A single type parameter alternative to
A single type parameter alternative to
extractFieldValue[A, B](a, ...)
where
a.getClass == classOf[A]
extractFieldValue[A, B](a, ...) }}}
Extract a value from a given field regardless of its visibility.
Extract a value from a given field regardless of its visibility. This method utilizes a mix of Java and Scala reflection mechanisms, and can extract from a compiler generated fields as well. Note: if the field has an associated Scala accessor one will be called. Consequently if the filed is lazy it will be initialized.
type in which the given field is declared
expected type of the field value to return
target object
field name to extract value from
a field value
Extract object properties as key-value pairs.
Extract object properties as key-value pairs.
Here by properties
we understand public accessors that match a primary constructor arguments.
As in a case class, for example.
a target instance (in most cases an instance of a case class)
a map of property names to their values
Returns an object instance with the specified name.
Returns an object instance with the specified name. Similar to as Class.forName() returns a Class instance by name, this method returns a Scala object instance by name.
fully qualified object instance name
Returns a sequence of all known objects that directly inherit from the given sealed type T
Returns a sequence of all known objects that directly inherit from the given sealed type T
sealed type
sequence of object instances
(Since version ) see corresponding Javadoc for more information.
Reflection utils