Packages

o

za.co.absa.commons.reflect

ReflectionUtils

object ReflectionUtils

Reflection utils

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReflectionUtils
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def allInterfacesOf[A <: AnyRef](implicit arg0: ClassTag[A]): Set[Class[_]]

    Same as

    Same as

    allInterfacesOf(aClass)
    A

    a class type

  5. def allInterfacesOf(c: Class[_]): Set[Class[_]]

    Return all interfaces that the given class implements included inherited ones

    Return all interfaces that the given class implements included inherited ones

    c

    a class

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def caseClassCtorArgDefaultValue[A](t: Class[_], name: String): Option[A]
  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  9. def compile[A](code: scala.reflect.api.JavaUniverse.Tree): (Map[String, Any]) ⇒ A
  10. def directSubClassesOf[T](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Seq[Class[_ <: T]]

    Lists all direct sub-classes of the given sealed type T

    Lists all direct sub-classes of the given sealed type T

    T

    sealed type

    returns

    sequence of classes

  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. def extractFieldValue[T](o: AnyRef, fieldName: String): T

    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, ...) }}}

  14. def extractFieldValue[A, B](o: AnyRef, fieldName: String)(implicit arg0: ClassTag[A]): B

    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.

    A

    type in which the given field is declared

    B

    expected type of the field value to return

    o

    target object

    fieldName

    field name to extract value from

    returns

    a field value

  15. def extractProperties(obj: AnyRef): Map[String, _]

    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.

    obj

    a target instance (in most cases an instance of a case class)

    returns

    a map of property names to their values

  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. def objectForName[T <: AnyRef](name: String): T

    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.

    name

    fully qualified object instance name

  23. def objectsOf[T <: AnyRef](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Seq[T]

    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

    T

    sealed type

    returns

    sequence of object instances

  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. object ModuleClassSymbolExtractor

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped