Packages

object ObjectType

Defines factory and extractor methods for ObjectTypes.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ObjectType
  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. final val ArithmeticException: ObjectType
  5. final val ArrayIndexOutOfBoundsException: ObjectType
  6. final val ArrayStoreException: ObjectType
  7. final val Boolean: ObjectType
  8. final val BootstrapMethodError: ObjectType
  9. final val Byte: ObjectType
  10. final val CallSite: ObjectType
  11. final val Character: ObjectType
  12. final val Class: ObjectType
  13. final val ClassCastException: ObjectType
  14. final val ClassId: Int(11)
  15. final val ClassNotFoundException: ObjectType
  16. final val Cloneable: ObjectType
  17. final val Double: ObjectType
  18. final val Error: ObjectType
  19. final val Exception: ObjectType
  20. final val ExceptionInInitializerError: ObjectType
  21. final val Externalizable: ObjectType
  22. final val Float: ObjectType
  23. final val IllegalMonitorStateException: ObjectType
  24. final val IndexOutOfBoundsException: ObjectType
  25. final val Integer: ObjectType
  26. final val LambdaMetafactory: ObjectType
  27. final val Long: ObjectType
  28. final val Method: ObjectType
  29. final val MethodHandle: ObjectType
  30. final val MethodHandles: ObjectType
  31. final val MethodHandles$Lookup: ObjectType
  32. final val MethodType: ObjectType
  33. final val ModuleInfo: ObjectType
  34. final val NegativeArraySizeException: ObjectType
  35. final val NullPointerException: ObjectType
  36. final val Object: ObjectType
  37. final val ObjectId: Int(0)
  38. final val OutOfMemoryError: ObjectType
  39. final val RuntimeException: ObjectType
  40. final val ScalaLambdaDeserialize: ObjectType
  41. final val ScalaStructuralCallSite: ObjectType
  42. final val ScalaSymbol: ObjectType
  43. final val ScalaSymbolLiteral: ObjectType
  44. final val Serializable: ObjectType
  45. final val SerializableAndCloneable: UIDSet[ObjectType]

    Least upper type bound of Java arrays.

    Least upper type bound of Java arrays. That is, every Java array is always Serializable and Cloneable.

  46. final val SerializedLambda: ObjectType
  47. final val Short: ObjectType
  48. final val String: ObjectType
  49. final val StringBuilder: ObjectType
  50. final val StringConcatFactory: ObjectType
  51. final val StringId: Int(10)
  52. final val System: ObjectType
  53. final val Throwable: ObjectType
  54. final val VarHandle: ObjectType
  55. final val Void: ObjectType
  56. def apply(fqn: String): ObjectType

    Factory method to create ObjectTypes.

    Factory method to create ObjectTypes.

    fqn

    The fully qualified name of a class or interface type in binary notation.

    Note

    ObjectType objects are cached internally to reduce the overall memory requirements and to ensure that only one instance of an ObjectType exists per fully qualified name. Hence, comparing ObjectTypes using reference comparison is explicitly supported.

  57. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  58. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  59. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  60. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  61. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  62. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  63. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  64. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  65. final def isPrimitiveTypeWrapper(objectType: ObjectType): Boolean
    Annotations
    @inline()
  66. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  67. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  68. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  69. def objectTypesCount: Int

    The number of different ObjectTypes that were created.

  70. def packageName(fqn: String): String

    The package name of this type.

    The package name of this type. The package name does not include a final package separator char ("/").

    E.g.,

    scala> val os = org.opalj.br.ObjectType("java/lang/String")
    os: org.opalj.br.ObjectType = ObjectType(java/lang/String)
    
    scala> os.packageName
    res1: String = java/lang
    
    scala> os.simpleName
    res2: String = String
    
    scala> os.toJava
    res3: String = java.lang.String
  71. def primitiveType(wrapperType: ObjectType): Option[BaseType]

    Given a wrapper type (e.g., java.lang.Integer) the underlying primitive type is returned.

    Given a wrapper type (e.g., java.lang.Integer) the underlying primitive type is returned.

    Example:
    1. scala> import org.opalj.br._
      scala> ObjectType.primitiveType(ObjectType.Integer)
      res0: Option[org.opalj.br.BaseType] = Some(IntegerType)
  72. def primitiveTypeWrapperMatcher[Args, T](booleanMatch: (Args) ⇒ T, byteMatch: (Args) ⇒ T, charMatch: (Args) ⇒ T, shortMatch: (Args) ⇒ T, integerMatch: (Args) ⇒ T, longMatch: (Args) ⇒ T, floatMatch: (Args) ⇒ T, doubleMatch: (Args) ⇒ T, orElse: (Args) ⇒ T): (ObjectType, Args) ⇒ T
  73. def setObjectTypeCreationListener(f: (ObjectType) ⇒ Unit): Unit

    Sets the listener and immediately calls it (multiple times) to inform the listener about all known object types.

    Sets the listener and immediately calls it (multiple times) to inform the listener about all known object types. It is guaranteed that the listener will not miss any object type creation. However, invocation may occur concurrently.

  74. def simpleName(fqn: String): String
  75. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  76. def toString(): String
    Definition Classes
    AnyRef → Any
  77. def unapply(ot: ObjectType): Option[String]
  78. def unboxValue[T](wrapperType: Type)(implicit typeConversionFactory: TypeConversionFactory[T]): T
  79. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  80. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  81. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped