Object

za.co.absa.commons.reflect

ReflectionUtils

Related Doc: package reflect

Permalink

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object ModuleClassSymbolExtractor

    Permalink
  5. def allInterfacesOf[A <: AnyRef](implicit arg0: ClassTag[A]): Set[Class[_]]

    Permalink

    Same as

    Same as

    allInterfacesOf(aClass)
    A

    a class type

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

    Permalink

    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

  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def caseClassCtorArgDefaultValue[A](t: Class[_], name: String): Option[A]

    Permalink
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  10. def compile[A](code: scala.reflect.api.JavaUniverse.Tree): (Map[String, Any]) ⇒ A

    Permalink
  11. def directSubClassesOf[T](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Seq[Class[_ <: T]]

    Permalink

    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

  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def extractFieldValue[T](o: AnyRef, fieldName: String): T

    Permalink

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

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

    Permalink

    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

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

    Permalink

    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

  17. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  23. def objectForName[T <: AnyRef](name: String): T

    Permalink

    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

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

    Permalink

    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

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  26. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  27. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped